2004-08-30 Bryan Clark <clarkbw@cvs.gnome.org>
* examples/python/NetworkManager.py: Bug fixes to the code so we get all the device information that we need in get_device() * examples/python/NMTester.py: Fixed _print_device_list to print_device_list git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@107 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:

committed by
Bryan W. Clark

parent
4252c351f3
commit
bc7cd6c408
@@ -30,7 +30,7 @@ class NMTester(NetworkManager):
|
||||
|
||||
def nm_signal_handler(self, interface, signal_name,
|
||||
service, path, message):
|
||||
self._print_device_list()
|
||||
self.print_device_list()
|
||||
|
||||
def nmi_signal_handler(self, interface, signal_name,
|
||||
service, path, message):
|
||||
|
@@ -102,14 +102,14 @@ class NetworkManager:
|
||||
|
||||
if device in self.__devices:
|
||||
for k,v in d.iteritems():
|
||||
self.__devices[device][k] = [v]
|
||||
return d
|
||||
self.__devices[device][k] = v
|
||||
return self.__devices[device]
|
||||
else:
|
||||
hal = self._get_hal_info(d["nm.udi"])
|
||||
for k,v in hal.iteritems():
|
||||
d[k] = v
|
||||
self.__devices[device] = d
|
||||
return d
|
||||
return self.__devices[device]
|
||||
except:
|
||||
return None
|
||||
|
||||
|
Reference in New Issue
Block a user