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 from Components.NimManager import nimmanager
77 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
83 <listentry caption="Yes" step="startdefaultlists" />
84 <listentry caption="No" step="scanquestion" />
88 <step id="scanquestion">
89 <text value="Do you want to do a service scan?" />
91 from Components.NimManager import nimmanager
92 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
98 <listentry caption="Yes, do an automatic scan now" step="scan" />
99 <listentry caption="Yes, do a manual scan now" step="manualscan" />
100 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
103 <step id="scan" nextstep="finisheddefaultsatlists">
105 from Components.NimManager import nimmanager
106 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
108 <text value="What do you want to scan?" />
109 <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
111 <step id="manualscan">
113 from Components.NimManager import nimmanager
114 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
116 <text value="What do you want to scan?" />
117 <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
121 from Components.NimManager import nimmanager
122 self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
124 <text value="Do you want to do another manual service scan?" />
126 <listentry caption="Yes, do another manual scan now" step="manualscan" />
127 <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
130 <step id="finisheddefaultsatlists">
131 <text value="Do you want to enable the parental control feature on your dreambox?" />
133 <listentry caption="Yes" step="parentalsetup" />
134 <listentry caption="No" step="end" />
137 if self["list"].index == 0:
138 config.ParentalControl.configured.value = True
140 config.ParentalControl.configured.value = False
141 config.ParentalControl.configured.save()
144 <step id="parentalsetup">
145 <text value="You need to set a pin code and hide it from your children.\n\nDo you want to set the pin now?" />
147 <listentry caption="Yes" step="finishparentalsetup" />
148 <listentry caption="No" step="finishparentalsetup" />
151 from ParentalControlSetup import ParentalControlChangePin
152 if self["list"].index == 0:
153 self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
156 <step id="finishparentalsetup">
158 config.ParentalControl.setuppinactive.value = True
159 config.ParentalControl.setuppinactive.save()
160 config.ParentalControl.servicepinactive.value = True
161 config.ParentalControl.servicepinactive.save()
162 config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
163 config.ParentalControl.setuppin.save()
166 <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." />
168 <step id="end" laststep="true">
170 self.condition = self.isLastWizard
172 <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using your Dreambox." />