1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-21 21:38:06 +01:00

Fixed bug where network entry settings weren't being saved correctly because of overloading the variable "type", which is a built in python function.

Cleaned up some formatting in gui.py and daemon.py
Fixed some bad daemon calls in the setting saving process.
This commit is contained in:
imdano
2008-02-05 13:46:42 +00:00
parent d46da02511
commit 98069ad994
2 changed files with 197 additions and 185 deletions

View File

@@ -554,13 +554,18 @@ class ConnectionWizard(dbus.service.Object):
@dbus.service.method('org.wicd.daemon.wireless')
def SetHiddenNetworkESSID(self, essid):
'''sets the ESSID of a hidden network for use with ConnectionWizard.Scan'''
''' Sets the ESSID of a hidden network for use with Scan(). '''
print 'setting hidden essid: ' + str(essid)
self.hidden_essid = str(misc.Noneify(essid))
@dbus.service.method('org.wicd.daemon.wireless')
def Scan(self):
'''scans for wireless networks, optionally using a (hidden) essid set with SetHiddenNetworkESSID'''
''' Scan for wireless networks.
Scans for wireless networks,optionally using a (hidden) essid
set with SetHiddenNetworkESSID.
'''
print 'scanning start'
scan = self.wifi.Scan(str(self.hidden_essid))
self.LastScan = scan