def AdapterSetupEnd(self, iface):
self.originalInterfaceStateChanged = True
- if iNetwork.getAdapterAttribute(iface, "dhcp") is True:
- iNetwork.checkNetworkState(self.AdapterSetupEndFinished)
- self.AdapterRef = self.session.openWithCallback(self.AdapterSetupEndCB, MessageBox, _("Please wait while we test your network..."), type = MessageBox.TYPE_INFO, enable_input = False)
- else:
- self.currStep = self.getStepWithID("confdns")
- self.afterAsyncCode()
+ iNetwork.checkNetworkState(self.AdapterSetupEndFinished)
+ self.AdapterRef = self.session.openWithCallback(self.AdapterSetupEndCB, MessageBox, _("Please wait while we test your network..."), type = MessageBox.TYPE_INFO, enable_input = False)
def AdapterSetupEndCB(self,data):
if data is True:
self.AdapterSetupEnd(self.selectedInterface)
</code>
</step>
- <step id="confdns" nextstep="checklanstatusend">
- <text value="Please configure or verify your Nameservers by filling out the required values.\nWhen you are ready press OK to continue." />
- <displaytext value="Configure nameservers" />
- <config screen="NameserverSetup" module="NetworkSetup" type="ConfigList" />
- <code>
-self.clearSelectedKeys()
-self.selectKey("OK")
- </code>
- <code pos="after" async="yes">
-self.checkNetwork()
- </code>
- </step>
<step id="checklanstatusend" nextstep="end">
<condition>
self.condition = (self.InterfaceState == True )