Ejemplo n.º 1
0
	def _createSetup(self):
		configNextCheck = ConfigDateTime(updateCheck.nextCheck, "%Y-%m-%d %H:%M:%S")
		configNextCheck.enabled = False
		config.plugins.updatechecker.lastcheck.enabled = False
		l = [
				getConfigListEntry(_("Check on every boot"), config.plugins.updatechecker.checkonboot),
				getConfigListEntry(_("Automatically check for new updates"), config.plugins.updatechecker.interval),
			]
		if config.plugins.updatechecker.interval.value != UPDATE_CHECK_NEVER:
			l.extend([
				getConfigListEntry(_("Last check"), config.plugins.updatechecker.lastcheck),
				getConfigListEntry(_("Next check"), configNextCheck),
			])
		self["config"].list = l
		self["config"].l.setList(l)
Ejemplo n.º 2
0
 def configContent(self):
     from Plugins.SystemPlugins.SoftwareManager.UpdateCheck import updateCheck, UPDATE_CHECK_NEVER
     configNextCheck = ConfigDateTime(updateCheck.nextCheck,
                                      "%Y-%m-%d %H:%M:%S")
     configNextCheck.enabled = False
     config.plugins.updatechecker.lastcheck.enabled = False
     l = [
         getConfigListEntry(_("Check on every boot"),
                            config.plugins.updatechecker.checkonboot),
         getConfigListEntry(_("Automatically check for new updates"),
                            config.plugins.updatechecker.interval),
     ]
     if config.plugins.updatechecker.interval.value != UPDATE_CHECK_NEVER:
         l.extend([
             getConfigListEntry(_("Last check"),
                                config.plugins.updatechecker.lastcheck),
             getConfigListEntry(_("Next check"), configNextCheck),
         ])
     return l
Ejemplo n.º 3
0
 def _createSetup(self):
     configNextCheck = ConfigDateTime(updateCheck.nextCheck,
                                      "%Y-%m-%d %H:%M:%S")
     configNextCheck.enabled = False
     config.plugins.updatechecker.lastcheck.enabled = False
     l = [
         getConfigListEntry(_("Check on every boot"),
                            config.plugins.updatechecker.checkonboot),
         getConfigListEntry(_("Automatically check for new updates"),
                            config.plugins.updatechecker.interval),
     ]
     if config.plugins.updatechecker.interval.value != UPDATE_CHECK_NEVER:
         l.extend([
             getConfigListEntry(_("Last check"),
                                config.plugins.updatechecker.lastcheck),
             getConfigListEntry(_("Next check"), configNextCheck),
         ])
     self["config"].list = l
     self["config"].l.setList(l)