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" />
91 <step id="asknetworktype">
93 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
95 <text value="Wireless network connection setup." />
96 <displaytext value="Wireless network connection setup" />
98 self.clearSelectedKeys()
101 self.selectKey("DOWN")
104 <listentry caption="List available networks" step="scanwlan" />
105 <listentry caption="Manual configuration" step="wlanconfig" />
106 <listentry caption="Exit network wizard" step="end" />
112 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
114 <text value="Please select the wireless network that you want to connect to.\n\nPlease press OK to continue." />
115 <displaytext value="Select wireless network" />
116 <list type="dynamic" source="listAccessPoints" onselect="AccessPointsSelectionMoved" />
118 self.clearSelectedKeys()
121 self.selectKey("DOWN")
122 self.selectKey("LEFT")
123 self.selectKey("RIGHT")
126 self.checkWlanSelection()
131 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
133 <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." />
134 <displaytext value="Please follow the instructions on the TV" />
135 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
137 self.clearSelectedKeys()
140 self.selectKey("DOWN")
145 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
147 <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
148 <displaytext value="Please follow the instructions on the TV" />
149 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
152 self.clearSelectedKeys()
155 self.selectKey("DOWN")
158 <step id="wlanconfig">
159 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
160 <displaytext value="Configure interface" />
161 <config screen="AdapterSetup" module="NetworkSetup" args="(self.selectedInterface,self.ap)" type="ConfigList" />
163 self.clearSelectedKeys()
166 self.selectKey("DOWN")
167 self.selectKey("LEFT")
168 self.selectKey("RIGHT")
170 <code pos="after" async="yes">
171 self.AdapterSetupEnd(self.selectedInterface)
174 <step id="checkWlanstatusend" nextstep="end">
176 self.condition = (self.InterfaceState == True )
178 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
179 <displaytext value="Please follow the instructions on the TV" />
181 self.clearSelectedKeys()
183 self["text"].setText(self.Text)
186 currStep = self.numSteps
187 self.wizard[currStep]["nextstep"] = None
192 <step id="checkWlanstatusend">
194 self.condition = (self.InterfaceState == False )
196 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
197 <displaytext value="Please follow the instructions on the TV" />
199 self.clearSelectedKeys()
202 self.selectKey("DOWN")
205 <listentry caption="Configure your network again" step="welcome" />
206 <listentry caption="Exit network wizard" step="end" />
211 <text value="Thank you for using the wizard.\nPlease press OK to continue." />
213 self.clearSelectedKeys()