3 <text value="Welcome.\n\nIf you want to connect your Dreambox to the Internet, this wizard will guide you through the basic network setup of your Dreambox.\n\nPress OK to start configuring your network" />
4 <displaytext value="Network Wizard" />
6 self.clearSelectedKeys()
9 <code pos="after" async="yes">
10 self.selectInterface()
14 <step id="selectinterface">
15 <text value="Please select the network interface that you want to use for your internet connection.\n\nPlease press OK to continue." />
16 <displaytext value="Select interface" />
17 <list type="dynamic" source="listInterfaces" evaluation="InterfaceSelectionMade" onselect="InterfaceSelectionMoved" />
19 self.clearSelectedKeys()
22 self.selectKey("DOWN")
24 <code pos="after" async="yes">
25 self.checkInterface(self.selectedInterface)
29 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
30 <displaytext value="Configure interface" />
31 <config screen="AdapterSetup" module="NetworkSetup" args="self.selectedInterface" type="ConfigList" />
33 self.clearSelectedKeys()
36 self.selectKey("DOWN")
37 self.selectKey("LEFT")
38 self.selectKey("RIGHT")
40 <code pos="after" async="yes">
41 self.AdapterSetupEnd(self.selectedInterface)
44 <step id="confdns" nextstep="checklanstatusend">
45 <text value="Please configure or verify your Nameservers by filling out the required values.\nWhen you are ready press OK to continue." />
46 <displaytext value="Configure nameservers" />
47 <config screen="NameserverSetup" module="NetworkSetup" type="ConfigList" />
49 self.clearSelectedKeys()
52 <code pos="after" async="yes">
56 <step id="checklanstatusend" nextstep="end">
58 self.condition = (self.InterfaceState == True )
60 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
61 <displaytext value="Please follow the instructions on the TV" />
63 self.clearSelectedKeys()
67 currStep = self.numSteps
68 self.wizard[currStep]["nextstep"] = None
73 <step id="checklanstatusend">
75 self.condition = (self.InterfaceState == False )
77 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
78 <displaytext value="Please follow the instructions on the TV" />
80 self.clearSelectedKeys()
83 self.selectKey("DOWN")
86 <listentry caption="Configure your network again" step="welcome" />
87 <listentry caption="Exit network wizard" step="end" />
92 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
94 <text value="Please select the wireless network that you want to connect to.\n\nPlease press OK to continue." />
95 <displaytext value="Select wireless network" />
96 <list type="dynamic" source="listAccessPoints" evaluation="AccessPointsSelectionMade" onselect="AccessPointsSelectionMoved" />
98 self.clearSelectedKeys()
101 self.selectKey("DOWN")
102 self.selectKey("LEFT")
103 self.selectKey("RIGHT")
106 self.checkWlanSelection()
111 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
113 <text value="Your wireless LAN internet connection could not be started!\nHave you attached your USB WLAN Stick?\n\nPlease choose what you want to do next." />
114 <displaytext value="Please follow the instructions on the TV" />
115 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
117 self.clearSelectedKeys()
120 self.selectKey("DOWN")
125 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
127 <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
128 <displaytext value="Please follow the instructions on the TV" />
129 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
132 self.clearSelectedKeys()
135 self.selectKey("DOWN")
138 <step id="wlanconfig">
139 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
140 <displaytext value="Configure interface" />
141 <config screen="AdapterSetup" module="NetworkSetup" args="(self.selectedInterface,self.ap,self.WlanList)" type="ConfigList" />
143 self.clearSelectedKeys()
146 self.selectKey("DOWN")
147 self.selectKey("LEFT")
148 self.selectKey("RIGHT")
150 <code pos="after" async="yes">
151 self.AdapterSetupEnd(self.selectedInterface)
154 <step id="checkWlanstatusend" nextstep="end">
156 self.condition = (self.InterfaceState == True )
158 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
159 <displaytext value="Please follow the instructions on the TV" />
161 self.clearSelectedKeys()
163 self["text"].setText(self.Text)
166 currStep = self.numSteps
167 self.wizard[currStep]["nextstep"] = None
172 <step id="checkWlanstatusend">
174 self.condition = (self.InterfaceState == False )
176 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
177 <displaytext value="Please follow the instructions on the TV" />
179 self.clearSelectedKeys()
182 self.selectKey("DOWN")
185 <listentry caption="Configure your network again" step="welcome" />
186 <listentry caption="Exit network wizard" step="end" />
191 <text value="Thank you for using the wizard.\nPlease press OK to continue." />
193 self.clearSelectedKeys()