1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 04:48:00 +01:00

fixed a couple of bugs:

wnettools.py: DetectWirelessInterfaces() didn't return the wireless interface
daemon.py: GetGlobalDNSAddresses() now returns a blank string instead of None for blank addresses; None could not be sent over dbus
This commit is contained in:
compwiz18
2007-08-16 05:55:45 +00:00
parent ccf7960694
commit 096d4d40f4
2 changed files with 2 additions and 2 deletions

View File

@@ -358,7 +358,7 @@ class ConnectionWizard(dbus.service.Object):
def GetGlobalDNSAddresses(self): def GetGlobalDNSAddresses(self):
'''returns the global dns addresses''' '''returns the global dns addresses'''
print 'returning global dns addresses to client' print 'returning global dns addresses to client'
return (self.dns1,self.dns2,self.dns3) return (misc.noneToString(self.dns1),misc.noneToString(self.dns2),misc.noneToString(self.dns3))
#end function GetWirelessInterface #end function GetWirelessInterface
@dbus.service.method('org.wicd.daemon') @dbus.service.method('org.wicd.daemon')

View File

@@ -287,7 +287,7 @@ class Wireless(Controller):
The first available wireless interface. The first available wireless interface.
""" """
wnettools.GetWirelessInterfaces() return wnettools.GetWirelessInterfaces()
def Disconnect(self): def Disconnect(self):