Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 581460
Collapse All | Expand All

(-)a/service/settings.py (-2 / +2 lines)
Lines 21-26 import cPickle Link Here
21
import os.path
21
import os.path
22
import config
22
import config
23
import urllib2
23
import urllib2
24
import sys
24
25
25
class SettingsProvider():
26
class SettingsProvider():
26
    BASE_PATH = os.path.join(config.savePath, "settings")
27
    BASE_PATH = os.path.join(config.savePath, "settings")
Lines 199-205 class HTMLExportSettings(): Link Here
199
        return cls._instance    
200
        return cls._instance    
200
201
201
    def __init__(self):
202
    def __init__(self):
202
        serviceHTMLExportDefaultSettings = {"enabled": False, "path": config.pyfaPath + os.sep + 'pyfaFits.html', "website": "null-sec.com" }
203
        serviceHTMLExportDefaultSettings = {"enabled": False, "path": unicode(os.path.expanduser(os.path.join('~', 'pyfaFits.html')), sys.getfilesystemencoding()) }
203
        self.serviceHTMLExportSettings = SettingsProvider.getInstance().getSettings("pyfaServiceHTMLExportSettings", serviceHTMLExportDefaultSettings)
204
        self.serviceHTMLExportSettings = SettingsProvider.getInstance().getSettings("pyfaServiceHTMLExportSettings", serviceHTMLExportDefaultSettings)
204
    
205
    
205
    def getEnabled(self):
206
    def getEnabled(self):
206
- 

Return to bug 581460