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 self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty and config.misc.startwizard.shownimconfig.value
53 <text value="Please set up tuner C" />
54 <config screen="NimSetup" module="Satconfig" args="2" type="ConfigList" />
56 self.clearSelectedKeys()
57 self.selectKey("LEFT")
58 self.selectKey("RIGHT")
63 from Components.NimManager import nimmanager
64 self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty and config.misc.startwizard.shownimconfig.value
66 <text value="Please set up tuner D" />
67 <config screen="NimSetup" module="Satconfig" args="3" type="ConfigList" />
69 self.clearSelectedKeys()
70 self.selectKey("LEFT")
71 self.selectKey("RIGHT")
74 <step id="satlistsquestion">
75 <text value="Do you want to install default sat lists?" />
77 from Components.NimManager import nimmanager
78 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
84 <listentry caption="Yes" step="startdefaultlists" />
85 <listentry caption="No" step="scanquestion" />
89 <step id="scanquestion">
90 <text value="Do you want to do a service scan?" />
92 from Components.NimManager import nimmanager
93 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
99 <listentry caption="Yes, do an automatic scan now" step="scan" />
100 <listentry caption="Yes, do a manual scan now" step="manualscan" />
101 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
104 <step id="scan" nextstep="finisheddefaultsatlists">
106 from Components.NimManager import nimmanager
107 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
109 <text value="What do you want to scan?" />
110 <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
112 <step id="manualscan">
114 from Components.NimManager import nimmanager
115 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
117 <text value="What do you want to scan?" />
118 <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
122 from Components.NimManager import nimmanager
123 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
125 <text value="Do you want to do another manual service scan?" />
127 <listentry caption="Yes, do another manual scan now" step="manualscan" />
128 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
131 <step id="finisheddefaultsatlists">
132 <text value="Do you want to enable the parental control feature on your STB?" />
135 <listentry caption="Yes" step="parentalsetup" />
136 <listentry caption="No" step="end" />
139 if self["list"].index == 0:
140 config.ParentalControl.configured.value = True
142 config.ParentalControl.configured.value = False
143 config.ParentalControl.configured.save()
146 <step id="parentalsetup">
147 <text value="You need to set a PIN code and hide it from your children.\n\nDo you want to set the pin now?" />
149 <listentry caption="Yes" step="finishparentalsetup" />
150 <listentry caption="No" step="warnpin" />
153 from ParentalControlSetup import ParentalControlChangePin
154 if self["list"].index == 0:
155 self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
159 <text value="Please be aware, that anyone can disable the parental control, if you have not set a PIN." />
161 <step id="finishparentalsetup">
163 if config.ParentalControl.setuppin.value == "aaaa":
164 config.ParentalControl.setuppinactive.value = False
166 config.ParentalControl.setuppinactive.value = True
167 config.ParentalControl.setuppinactive.save()
168 config.ParentalControl.servicepinactive.value = True
169 config.ParentalControl.servicepinactive.save()
170 config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
171 config.ParentalControl.setuppin.save()
174 <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." />
177 <step id="end" laststep="true">
179 self.condition = self.isLastWizard
181 <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using your STB." />