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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user