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)
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"))
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)
def setUnlockedTime(i): return common.setAddonSetting("unlocked-time",str(i))
def setUnlockedTime(i): return common.setAddonSetting("unlocked-time", str(i))
def setsetting(id, _value=None): common.setAddonSetting(None, id, _value)