2 <step id="start" nextstep="introduction">
3 <text value="Welcome.\n\nThis start wizard will guide you through the basic setup of your Dreambox.\nPress the OK button on your remote control to move to the next step." />
5 self.clearSelectedKeys()
9 <step id="introduction" >
10 <text value="Use the up/down keys on your remote control to select an option. After that, press OK." />
12 <listentry caption="Use wizard to set up basic features" step="nima" />
13 <listentry caption="Exit wizard" step="end" />
16 self.clearSelectedKeys()
18 self.selectKey("DOWN")
23 from Components.NimManager import nimmanager
24 self.condition = len(nimmanager.nim_slots) > 0 and not nimmanager.nim_slots[0].empty and config.misc.startwizard.shownimconfig.value
26 <text value="Use the left and right buttons to change an option.\n\nPlease set up tuner A" />
27 <config screen="NimSetup" module="Satconfig" args="0" type="ConfigList" />
29 self.clearSelectedKeys()
30 self.selectKey("LEFT")
31 self.selectKey("RIGHT")
36 from Components.NimManager import nimmanager
37 self.condition = len(nimmanager.nim_slots) > 1 and not nimmanager.nim_slots[1].empty and config.misc.startwizard.shownimconfig.value
39 <text value="Please set up tuner B" />
40 <config screen="NimSetup" module="Satconfig" args="1" type="ConfigList" />
42 self.clearSelectedKeys()
43 self.selectKey("LEFT")
44 self.selectKey("RIGHT")
49 from Components.NimManager import nimmanager
50 self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty and config.misc.startwizard.shownimconfig.value
52 <text value="Please set up tuner C" />
53 <config screen="NimSetup" module="Satconfig" args="2" type="ConfigList" />
55 self.clearSelectedKeys()
56 self.selectKey("LEFT")
57 self.selectKey("RIGHT")
62 from Components.NimManager import nimmanager
63 self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty and config.misc.startwizard.shownimconfig.value
65 <text value="Please set up tuner D" />
66 <config screen="NimSetup" module="Satconfig" args="3" type="ConfigList" />
68 self.clearSelectedKeys()
69 self.selectKey("LEFT")
70 self.selectKey("RIGHT")
73 <step id="satlistsquestion">
74 <text value="Do you want to install default sat lists?" />
76 self.condition = config.misc.startwizard.doservicescan.value
82 <listentry caption="Yes" step="startdefaultlists" />
83 <listentry caption="No" step="scanquestion" />
87 <step id="scanquestion">
88 <text value="Do you want to do a service scan?" />
90 self.condition = config.misc.startwizard.doservicescan.value
96 <listentry caption="Yes, do an automatic scan now" step="scan" />
97 <listentry caption="Yes, do a manual scan now" step="manualscan" />
98 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
101 <step id="scan" nextstep="finisheddefaultsatlists">
103 self.condition = config.misc.startwizard.doservicescan.value
105 <text value="What do you want to scan?" />
106 <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
108 <step id="manualscan">
110 self.condition = config.misc.startwizard.doservicescan.value
112 <text value="What do you want to scan?" />
113 <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
117 self.condition = config.misc.startwizard.doservicescan.value
119 <text value="Do you want to do another manual service scan?" />
121 <listentry caption="Yes, do another manual scan now" step="manualscan" />
122 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
125 <step id="finisheddefaultsatlists">
126 <text value="Do you want to enable the parental control feature on your dreambox?" />
128 <listentry caption="Yes" step="parentalsetup" />
129 <listentry caption="No" step="end" />
132 if self["list"].index == 0:
133 config.ParentalControl.configured.value = True
135 config.ParentalControl.configured.value = False
136 config.ParentalControl.configured.save()
139 <step id="parentalsetup">
140 <text value="You need to set a pin code and hide it from your children.\n\nDo you want to set the pin now?" />
142 <listentry caption="Yes" step="finishparentalsetup" />
143 <listentry caption="No" step="finishparentalsetup" />
146 from ParentalControlSetup import ParentalControlChangePin
147 if self["list"].index == 0:
148 self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
151 <step id="finishparentalsetup">
153 config.ParentalControl.setuppinactive.value = True
154 config.ParentalControl.setuppinactive.save()
155 config.ParentalControl.servicepinactive.value = True
156 config.ParentalControl.servicepinactive.save()
157 config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
158 config.ParentalControl.setuppin.save()
161 <text value="After the start wizard is completed, you need to protect single services. Refer to your dreambox's manual on how to do that." />
164 <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using your Dreambox." />