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
@@ -1,3 +1,12 @@
|
|||||||
|
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
|
||||||
|
|
||||||
2004-08-29 Seth Nickell <seth@gnome.org>
|
2004-08-29 Seth Nickell <seth@gnome.org>
|
||||||
|
|
||||||
* configure.in:
|
* configure.in:
|
||||||
|
@@ -30,7 +30,7 @@ class NMTester(NetworkManager):
|
|||||||
|
|
||||||
def nm_signal_handler(self, interface, signal_name,
|
def nm_signal_handler(self, interface, signal_name,
|
||||||
service, path, message):
|
service, path, message):
|
||||||
self._print_device_list()
|
self.print_device_list()
|
||||||
|
|
||||||
def nmi_signal_handler(self, interface, signal_name,
|
def nmi_signal_handler(self, interface, signal_name,
|
||||||
service, path, message):
|
service, path, message):
|
||||||
|
@@ -102,14 +102,14 @@ class NetworkManager:
|
|||||||
|
|
||||||
if device in self.__devices:
|
if device in self.__devices:
|
||||||
for k,v in d.iteritems():
|
for k,v in d.iteritems():
|
||||||
self.__devices[device][k] = [v]
|
self.__devices[device][k] = v
|
||||||
return d
|
return self.__devices[device]
|
||||||
else:
|
else:
|
||||||
hal = self._get_hal_info(d["nm.udi"])
|
hal = self._get_hal_info(d["nm.udi"])
|
||||||
for k,v in hal.iteritems():
|
for k,v in hal.iteritems():
|
||||||
d[k] = v
|
d[k] = v
|
||||||
self.__devices[device] = d
|
self.__devices[device] = d
|
||||||
return d
|
return self.__devices[device]
|
||||||
except:
|
except:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user