Exemplo n.º 1
0
 def onClick_1205(self):
     value = self.getPropertyControlValue(1205)
     if self.any2bool(value):
         self.trace("Activating automatic system updates")
         common.setAddonSetting("service.clue", "sysupdate", True)
     else:
         common.setAddonSetting("service.clue", "sysupdate", False)
Exemplo n.º 2
0
 def __init__(self):
     self.status = 0
     self.localFS = None
     self.remoteFS = None
     self.restoreFile = None
     self.savedRemoteFS = None
     self.remoteBasePath = None
     self.fileManager = None
     self.restorePoint = None
     self.localFS = LocalFileSystem(common.path('special://home'))
     if common.setting('remote_selection') == 1:
         self.remoteBasePath = common.setting('remote_path_2')
         self.remoteFS = LocalFileSystem(common.setting('remote_path_2'))
         common.setAddonSetting("remote_path", "")
     elif common.setting('remote_selection') == 0:
         self.remoteBasePath = common.setting('remote_path')
         self.remoteFS = LocalFileSystem(common.setting("remote_path"))
Exemplo n.º 3
0
 def onClick_1204(self):
     value = self.getPropertyControlValue(1204)
     if self.any2bool(value):
         self.trace(
             "Activating system recovery process to run in backup mode")
         common.setAddonSetting("service.clue", "recovery", True)
         common.setAddonSetting("service.clue", "recovery_type", "backup")
     else:
         common.setAddonSetting("service.clue", "recovery", False)
Exemplo n.º 4
0
def setUnlockedTime(i):
    return common.setAddonSetting("unlocked-time",str(i))
Exemplo n.º 5
0
def setUnlockedTime(i):
    return common.setAddonSetting("unlocked-time", str(i))
Exemplo n.º 6
0
def setsetting(id, _value=None):
    common.setAddonSetting(None, id, _value)