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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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 Screens.Satconfig 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])
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")
160 <step id="satlistsquestion">
161 <text value="Do you want to install default sat lists?" />
163 from Components.NimManager import nimmanager
164 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
170 <listentry caption="Yes" step="startdefaultlists" />
171 <listentry caption="No" step="scanquestion" />
175 <step id="scanquestion">
176 <text value="Do you want to do a service scan?" />
178 from Components.NimManager import nimmanager
179 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
185 <listentry caption="Yes, do an automatic scan now" step="scan" />
186 <listentry caption="Yes, do a manual scan now" step="manualscan" />
187 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
190 <step id="scan" nextstep="finisheddefaultsatlists">
192 from Components.NimManager import nimmanager
193 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
195 <text value="What do you want to scan?" />
196 <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
198 <step id="manualscan">
200 from Components.NimManager import nimmanager
201 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
203 <text value="What do you want to scan?" />
204 <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
208 from Components.NimManager import nimmanager
209 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
211 <text value="Do you want to do another manual service scan?" />
213 <listentry caption="Yes, do another manual scan now" step="manualscan" />
214 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
217 <step id="finisheddefaultsatlists">
218 <text value="Do you want to enable the parental control feature on your STB?" />
221 <listentry caption="Yes" step="parentalsetup" />
222 <listentry caption="No" step="end" />
225 if self["list"].index == 0:
226 config.ParentalControl.configured.value = True
228 config.ParentalControl.configured.value = False
229 config.ParentalControl.configured.save()
232 <step id="parentalsetup">
233 <text value="You need to set a PIN code and hide it from your children.\n\nDo you want to set the pin now?" />
235 <listentry caption="Yes" step="finishparentalsetup" />
236 <listentry caption="No" step="warnpin" />
239 from ParentalControlSetup import ParentalControlChangePin
240 if self["list"].index == 0:
241 self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
245 <text value="Please be aware, that anyone can disable the parental control, if you have not set a PIN." />
247 <step id="finishparentalsetup">
249 if config.ParentalControl.setuppin.value == "aaaa":
250 config.ParentalControl.setuppinactive.value = False
252 config.ParentalControl.setuppinactive.value = True
253 config.ParentalControl.setuppinactive.save()
254 config.ParentalControl.servicepinactive.value = True
255 config.ParentalControl.servicepinactive.save()
256 config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
257 config.ParentalControl.setuppin.save()
260 <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." />
263 <step id="end" laststep="true">
265 self.condition = self.isLastWizard
267 <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using your STB." />