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="checklanstatusend" nextstep="end">
46 self.condition = (self.InterfaceState == True )
48 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
49 <displaytext value="Please follow the instructions on the TV" />
51 self.clearSelectedKeys()
55 currStep = self.numSteps
56 self.wizard[currStep]["nextstep"] = None
61 <step id="checklanstatusend">
63 self.condition = (self.InterfaceState == False )
65 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
66 <displaytext value="Please follow the instructions on the TV" />
68 self.clearSelectedKeys()
71 self.selectKey("DOWN")
74 <listentry caption="Configure your network again" step="welcome" />
75 <listentry caption="Exit network wizard" step="end" />
79 <step id="asknetworktype">
81 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
83 <text value="Wireless network connection setup." />
84 <displaytext value="Wireless network connection setup" />
86 self.clearSelectedKeys()
89 self.selectKey("DOWN")
92 <listentry caption="List available networks" step="scanwlan" />
93 <listentry caption="Manual configuration" step="wlanconfig" />
94 <listentry caption="Exit network wizard" step="end" />
100 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
102 <text value="Please select the wireless network that you want to connect to.\n\nPlease press OK to continue." />
103 <displaytext value="Select wireless network" />
104 <list type="dynamic" source="listAccessPoints" onselect="AccessPointsSelectionMoved" />
106 self.clearSelectedKeys()
109 self.selectKey("DOWN")
110 self.selectKey("LEFT")
111 self.selectKey("RIGHT")
114 self.checkWlanSelection()
119 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
121 <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." />
122 <displaytext value="Please follow the instructions on the TV" />
123 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
125 self.clearSelectedKeys()
128 self.selectKey("DOWN")
133 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
135 <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
136 <displaytext value="Please follow the instructions on the TV" />
137 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
140 self.clearSelectedKeys()
143 self.selectKey("DOWN")
146 <step id="wlanconfig">
147 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
148 <displaytext value="Configure interface" />
149 <config screen="AdapterSetup" module="NetworkSetup" args="(self.selectedInterface,self.ap)" type="ConfigList" />
151 self.clearSelectedKeys()
154 self.selectKey("DOWN")
155 self.selectKey("LEFT")
156 self.selectKey("RIGHT")
158 <code pos="after" async="yes">
159 self.AdapterSetupEnd(self.selectedInterface)
162 <step id="checkWlanstatusend" nextstep="end">
164 self.condition = (self.InterfaceState == True )
166 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
167 <displaytext value="Please follow the instructions on the TV" />
169 self.clearSelectedKeys()
171 self["text"].setText(self.Text)
174 currStep = self.numSteps
175 self.wizard[currStep]["nextstep"] = None
180 <step id="checkWlanstatusend">
182 self.condition = (self.InterfaceState == False )
184 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
185 <displaytext value="Please follow the instructions on the TV" />
187 self.clearSelectedKeys()
190 self.selectKey("DOWN")
193 <listentry caption="Configure your network again" step="welcome" />
194 <listentry caption="Exit network wizard" step="end" />
199 <text value="Thank you for using the wizard.\nPlease press OK to continue." />
201 self.clearSelectedKeys()