2 <step id="start" nextstep="introduction">
3 <text value="Welcome.\n\nThis start wizard will guide you through the basic setup of your STB.\nPress the OK button on your remote control to move to the next step." />
6 self.clearSelectedKeys()
10 <step id="introduction" >
11 <text value="Use the up/down keys on your remote control to select an option. After that, press OK." />
13 <listentry caption="Use wizard to set up basic features" step="nima" />
14 <listentry caption="Exit wizard" step="end" />
17 self.clearSelectedKeys()
19 self.selectKey("DOWN")
24 from Components.NimManager import nimmanager
25 self.condition = len(nimmanager.nim_slots) > 0 and not nimmanager.nim_slots[0].empty and config.misc.startwizard.shownimconfig.value
27 <text value="Use the left and right buttons to change an option.\n\nPlease set up tuner A" />
28 <config screen="NimSetup" module="Satconfig" args="0" type="ConfigList" />
30 self.clearSelectedKeys()
31 self.selectKey("LEFT")
32 self.selectKey("RIGHT")
37 from Components.NimManager import nimmanager
38 self.condition = len(nimmanager.nim_slots) > 1 and not nimmanager.nim_slots[1].empty and config.misc.startwizard.shownimconfig.value
40 <text value="Please set up tuner B" />
41 <config screen="NimSetup" module="Satconfig" args="1" type="ConfigList" />
43 self.clearSelectedKeys()
44 self.selectKey("LEFT")
45 self.selectKey("RIGHT")
50 from Components.NimManager import nimmanager
51 from enigma import isFBCLink
52 self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[2].slot)
54 <text value="Please set up tuner C" />
55 <config screen="NimSetup" module="Satconfig" args="2" type="ConfigList" />
57 self.clearSelectedKeys()
58 self.selectKey("LEFT")
59 self.selectKey("RIGHT")
64 from Components.NimManager import nimmanager
65 from enigma import isFBCLink
66 self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[3].slot)
68 <text value="Please set up tuner D" />
69 <config screen="NimSetup" module="Satconfig" args="3" type="ConfigList" />
71 self.clearSelectedKeys()
72 self.selectKey("LEFT")
73 self.selectKey("RIGHT")
78 from Components.NimManager import nimmanager
79 from enigma import isFBCLink
80 self.condition = len(nimmanager.nim_slots) > 4 and not nimmanager.nim_slots[4].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[4].slot)
82 <text value="Please set up tuner E" />
83 <config screen="NimSetup" module="Satconfig" args="4" type="ConfigList" />
85 self.clearSelectedKeys()
86 self.selectKey("LEFT")
87 self.selectKey("RIGHT")
92 from Components.NimManager import nimmanager
93 from enigma import isFBCLink
94 self.condition = len(nimmanager.nim_slots) > 5 and not nimmanager.nim_slots[5].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[5].slot)
96 <text value="Please set up tuner F" />
97 <config screen="NimSetup" module="Satconfig" args="5" type="ConfigList" />
99 self.clearSelectedKeys()
100 self.selectKey("LEFT")
101 self.selectKey("RIGHT")
106 from Components.NimManager import nimmanager
107 from enigma import isFBCLink
108 self.condition = len(nimmanager.nim_slots) > 6 and not nimmanager.nim_slots[6].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[6].slot)
110 <text value="Please set up tuner G" />
111 <config screen="NimSetup" module="Satconfig" args="6" type="ConfigList" />
113 self.clearSelectedKeys()
114 self.selectKey("LEFT")
115 self.selectKey("RIGHT")
120 from Components.NimManager import nimmanager
121 from enigma import isFBCLink
122 self.condition = len(nimmanager.nim_slots) > 7 and not nimmanager.nim_slots[7].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[7].slot)
124 <text value="Please set up tuner H" />
125 <config screen="NimSetup" module="Satconfig" args="7" type="ConfigList" />
127 self.clearSelectedKeys()
128 self.selectKey("LEFT")
129 self.selectKey("RIGHT")
134 from Components.NimManager import nimmanager
135 from enigma import isFBCLink
136 self.condition = len(nimmanager.nim_slots) > 8 and not nimmanager.nim_slots[8].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[8].slot)
138 <text value="Please set up tuner I" />
139 <config screen="NimSetup" module="Satconfig" args="8" type="ConfigList" />
141 self.clearSelectedKeys()
142 self.selectKey("LEFT")
143 self.selectKey("RIGHT")
148 from Components.NimManager import nimmanager
149 from enigma import isFBCLink
150 self.condition = len(nimmanager.nim_slots) > 9 and not nimmanager.nim_slots[9].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[9].slot)
152 <text value="Please set up tuner J" />
153 <config screen="NimSetup" module="Satconfig" args="9" type="ConfigList" />
155 self.clearSelectedKeys()
156 self.selectKey("LEFT")
157 self.selectKey("RIGHT")
162 from Components.NimManager import nimmanager
163 from enigma import isFBCLink
164 self.condition = len(nimmanager.nim_slots) > 16 and not nimmanager.nim_slots[16].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[16].slot)
166 <text value="Please set up tuner Q" />
167 <config screen="NimSetup" module="Satconfig" args="16" type="ConfigList" />
169 self.clearSelectedKeys()
170 self.selectKey("LEFT")
171 self.selectKey("RIGHT")
176 from Components.NimManager import nimmanager
177 from enigma import isFBCLink
178 self.condition = len(nimmanager.nim_slots) > 17 and not nimmanager.nim_slots[17].empty and config.misc.startwizard.shownimconfig.value and not isFBCLink(nimmanager.nim_slots[17].slot)
180 <text value="Please set up tuner R" />
181 <config screen="NimSetup" module="Satconfig" args="17" type="ConfigList" />
183 self.clearSelectedKeys()
184 self.selectKey("LEFT")
185 self.selectKey("RIGHT")
188 <step id="satlistsquestion">
189 <text value="Do you want to install default sat lists?" />
191 from Components.NimManager import nimmanager
192 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
198 <listentry caption="Yes" step="startdefaultlists" />
199 <listentry caption="No" step="scanquestion" />
203 <step id="scanquestion">
204 <text value="Do you want to do a service scan?" />
206 from Components.NimManager import nimmanager
207 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
213 <listentry caption="Yes, do an automatic scan now" step="scan" />
214 <listentry caption="Yes, do a manual scan now" step="manualscan" />
215 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
218 <step id="scan" nextstep="finisheddefaultsatlists">
220 from Components.NimManager import nimmanager
221 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
223 <text value="What do you want to scan?" />
224 <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
226 <step id="manualscan">
228 from Components.NimManager import nimmanager
229 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
231 <text value="What do you want to scan?" />
232 <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
236 from Components.NimManager import nimmanager
237 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
239 <text value="Do you want to do another manual service scan?" />
241 <listentry caption="Yes, do another manual scan now" step="manualscan" />
242 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
245 <step id="finisheddefaultsatlists">
246 <text value="Do you want to enable the parental control feature on your STB?" />
249 <listentry caption="Yes" step="parentalsetup" />
250 <listentry caption="No" step="end" />
253 if self["list"].index == 0:
254 config.ParentalControl.configured.value = True
256 config.ParentalControl.configured.value = False
257 config.ParentalControl.configured.save()
260 <step id="parentalsetup">
261 <text value="You need to set a PIN code and hide it from your children.\n\nDo you want to set the pin now?" />
263 <listentry caption="Yes" step="finishparentalsetup" />
264 <listentry caption="No" step="warnpin" />
267 from ParentalControlSetup import ParentalControlChangePin
268 if self["list"].index == 0:
269 self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
273 <text value="Please be aware, that anyone can disable the parental control, if you have not set a PIN." />
275 <step id="finishparentalsetup">
277 if config.ParentalControl.setuppin.value == "aaaa":
278 config.ParentalControl.setuppinactive.value = False
280 config.ParentalControl.setuppinactive.value = True
281 config.ParentalControl.setuppinactive.save()
282 config.ParentalControl.servicepinactive.value = True
283 config.ParentalControl.servicepinactive.save()
284 config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
285 config.ParentalControl.setuppin.save()
288 <text value="After the start wizard is completed, you need to protect single services. Refer to your STB's manual on how to do that." />
291 <step id="end" laststep="true">
293 self.condition = self.isLastWizard
295 <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using your STB." />