diff --git a/ChangeLog b/ChangeLog index 19c9361fc..674000890 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-08-30 Bryan Clark + + * 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 + 2004-08-29 Seth Nickell * configure.in: diff --git a/examples/python/NMTester.py b/examples/python/NMTester.py index 778a418dc..3eb54dfcf 100755 --- a/examples/python/NMTester.py +++ b/examples/python/NMTester.py @@ -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): diff --git a/examples/python/NetworkManager.py b/examples/python/NetworkManager.py index 0628abb7e..143673a0f 100755 --- a/examples/python/NetworkManager.py +++ b/examples/python/NetworkManager.py @@ -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