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:
Bryan Clark
2004-08-30 04:20:09 +00:00
committed by Bryan W. Clark
parent 4252c351f3
commit bc7cd6c408
3 changed files with 13 additions and 4 deletions

View File

@@ -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