+ <list>
+ <listentry caption="Yes" step="startdefaultlists" />
+ <listentry caption="No" step="scanquestion" />
+ </list>
+ </step>
+
+ <step id="scanquestion">
+ <text value="Do you want to do a service scan?" />
+ <condition>
+self.condition = config.misc.startwizard.doservicescan.value
+ </condition>
+ <code>
+self.hideRc()
+ </code>
+ <list>
+ <listentry caption="Yes, do an automatic scan now" step="scan" />
+ <listentry caption="Yes, do a manual scan now" step="manualscan" />
+ <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
+ </list>
+ </step>
+ <step id="scan" nextstep="finisheddefaultsatlists">
+ <condition>
+self.condition = config.misc.startwizard.doservicescan.value
+ </condition>
+ <text value="What do you want to scan?" />
+ <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
+ </step>
+ <step id="manualscan">
+ <condition>
+self.condition = config.misc.startwizard.doservicescan.value
+ </condition>
+ <text value="What do you want to scan?" />
+ <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
+ </step>
+ <step id="nextscan">
+ <condition>
+self.condition = config.misc.startwizard.doservicescan.value
+ </condition>
+ <text value="Do you want to do another manual service scan?" />
+ <list>
+ <listentry caption="Yes, do another manual scan now" step="manualscan" />
+ <listentry caption="No, scan later manually" step="finisheddefaultsatlists" />
+ </list>
+ </step>
+ <step id="finisheddefaultsatlists">
+ <text value="Do you want to enable the parental control feature on your dreambox?" />
+ <list>
+ <listentry caption="Yes" step="parentalsetup" />
+ <listentry caption="No" step="end" />
+ </list>
+ <code pos="after">
+if self["list"].index == 0:
+ config.ParentalControl.configured.value = True
+else:
+ config.ParentalControl.configured.value = False
+config.ParentalControl.configured.save()
+ </code>
+ </step>
+ <step id="parentalsetup">
+ <text value="You need to set a pin code and hide it from your children.\n\nDo you want to set the pin now?" />
+ <list>
+ <listentry caption="Yes" step="finishparentalsetup" />
+ <listentry caption="No" step="finishparentalsetup" />
+ </list>
+ <code pos="after">
+from ParentalControlSetup import ParentalControlChangePin
+if self["list"].index == 0:
+ self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
+ </code>
+ </step>
+ <step id="finishparentalsetup">
+ <code>
+config.ParentalControl.setuppinactive.value = True
+config.ParentalControl.setuppinactive.save()
+config.ParentalControl.servicepinactive.value = True
+config.ParentalControl.servicepinactive.save()
+config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
+config.ParentalControl.setuppin.save()
+ </code>
+
+ <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." />
+ </step>
+ <step id="end">
+ <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using you Dreambox." />
+ </step>