From ac203607d047ed489f339ab211907d1d1a1ff133 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sun, 18 May 2008 11:17:47 +0000 Subject: [PATCH] don't show in startwizard - tuner config if config.misc.startwizard.shownimconfig = False - service scan if config.misc.startwizard.doservicescan = False can be used to preconfigure an image through defaults in the dealer partition --- data/startwizard.xml | 20 ++++++++++++++++---- lib/python/Screens/StartWizard.py | 5 ++++- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/data/startwizard.xml b/data/startwizard.xml index 368b301e..5604f90d 100644 --- a/data/startwizard.xml +++ b/data/startwizard.xml @@ -30,7 +30,7 @@ self["rc"].startMoving() from Components.NimManager import nimmanager -self.condition = len(nimmanager.nim_slots) > 0 and not nimmanager.nim_slots[0].empty +self.condition = len(nimmanager.nim_slots) > 0 and not nimmanager.nim_slots[0].empty and config.misc.startwizard.shownimconfig.value @@ -48,7 +48,7 @@ self["arrowdown"].startMoving() from Components.NimManager import nimmanager -self.condition = len(nimmanager.nim_slots) > 1 and not nimmanager.nim_slots[1].empty +self.condition = len(nimmanager.nim_slots) > 1 and not nimmanager.nim_slots[1].empty and config.misc.startwizard.shownimconfig.value @@ -66,7 +66,7 @@ self["arrowdown"].startMoving() from Components.NimManager import nimmanager -self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty +self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty and config.misc.startwizard.shownimconfig.value @@ -84,7 +84,7 @@ self["arrowdown"].startMoving() from Components.NimManager import nimmanager -self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty +self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty and config.misc.startwizard.shownimconfig.value @@ -101,6 +101,9 @@ self["arrowdown"].startMoving() + +self.condition = config.misc.startwizard.doservicescan.value + self["rc"].moveTo(800, 50, 1) self["rc"].startMoving() @@ -116,14 +119,23 @@ self["arrowup2"].startMoving() + +self.condition = config.misc.startwizard.doservicescan.value + + +self.condition = config.misc.startwizard.doservicescan.value + + +self.condition = config.misc.startwizard.doservicescan.value + diff --git a/lib/python/Screens/StartWizard.py b/lib/python/Screens/StartWizard.py index 23c3cd71..d0ece295 100644 --- a/lib/python/Screens/StartWizard.py +++ b/lib/python/Screens/StartWizard.py @@ -2,11 +2,14 @@ from Wizard import wizardManager from Screens.WizardLanguage import WizardLanguage from Components.Pixmap import Pixmap, MovingPixmap -from Components.config import config, ConfigBoolean, configfile +from Components.config import config, ConfigBoolean, configfile, ConfigSubsection from LanguageSelection import LanguageSelection config.misc.firstrun = ConfigBoolean(default = True) +config.misc.startwizard = ConfigSubsection() +config.misc.startwizard.shownimconfig = ConfigBoolean(default = True) +config.misc.startwizard.doservicescan = ConfigBoolean(default = True) config.misc.languageselected = ConfigBoolean(default = True) class StartWizard(WizardLanguage): -- 2.30.2