Added logic for notification suppression, along with other tweaks. Did not worry too much on how to handle pre-releases.

This commit is contained in:
blitzmann
2014-02-16 01:26:13 -05:00
parent 024637432c
commit c0b4e73629
4 changed files with 106 additions and 26 deletions

View File

@@ -38,6 +38,7 @@ class SettingsProvider():
os.mkdir(self.BASE_PATH);
def getSettings(self, area, defaults=None):
s = self.settings.get(area)
if s is None:
p = os.path.join(self.BASE_PATH, area)
@@ -239,11 +240,7 @@ class UpdateSettings():
self.serviceUpdateSettings = SettingsProvider.getInstance().getSettings("pyfaServiceUpdateSettings", serviceUpdateDefaultSettings)
def get(self, type):
print "Getting "+type+ ": "
print self.serviceUpdateSettings["suppress" + type]
return self.serviceUpdateSettings["suppress" + type]
return self.serviceUpdateSettings[type]
def set(self, type, value):
self.serviceUpdateSettings["suppress" + type] = value
print "Setting "+type+ " = "
print self.serviceUpdateSettings["suppress" + type]
self.serviceUpdateSettings[type] = value