summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-08-25 12:26:19 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-08-25 12:26:19 -1000
commit8265e6f5887015c9c78a44ccbacdd0c6227a5c83 (patch)
tree4363baa024582c9ec369248d85866cc198635881 /iw
parent57e7079052bec83c6aa0bb327b220d1de908d118 (diff)
downloadanaconda-8265e6f5887015c9c78a44ccbacdd0c6227a5c83.tar.gz
anaconda-8265e6f5887015c9c78a44ccbacdd0c6227a5c83.tar.xz
anaconda-8265e6f5887015c9c78a44ccbacdd0c6227a5c83.zip
Use dbus in hasActiveNetDev() and _anyUsing()
Rewrote the hasActiveNetDev() and _anyUsing() function in network.py to talk to NetworkManager via dbus. Modified the calls in iw/network_gui.py and textw/network_text.py that use these functions.
Diffstat (limited to 'iw')
-rw-r--r--iw/network_gui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py
index 3da933364..efab6de31 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -141,7 +141,7 @@ class NetworkWindow(InstallWindow):
if self.getNumberActiveDevices() == 0:
state = False
else:
- state = network.anyUsingStatic(self.devices)
+ state = network.anyUsingStatic()
self.ipTable.set_sensitive(state)
@@ -523,7 +523,7 @@ class NetworkWindow(InstallWindow):
# bring over the value from the loader
self.hostnameEntry.set_text(self.network.hostname)
- if not network.anyUsingDHCP(self.devices):
+ if not network.anyUsingDHCP():
if self.network.gateway:
self.globals[_("Gateway")].set_text(self.network.gateway)
if self.network.primaryNS:
@@ -545,7 +545,7 @@ class NetworkWindow(InstallWindow):
self.hostnameEntry.set_sensitive(not self.hostnameUseDHCP.get_active())
self.setIPTableSensitivity()
- self.hostnameUseDHCP.set_sensitive(network.anyUsingDHCP(self.devices))
+ self.hostnameUseDHCP.set_sensitive(network.anyUsingDHCP())
return box