hal/tools/device-manager DeviceManager.py,1.23,1.24
David Zeuthen
david at freedesktop.org
Fri May 13 09:27:12 PDT 2005
Update of /cvs/hal/hal/tools/device-manager
In directory gabe:/tmp/cvs-serv11153/tools/device-manager
Modified Files:
DeviceManager.py
Log Message:
2005-05-13 David Zeuthen <davidz at redhat.com>
* tools/device-manager/DeviceManager.py:
(DeviceManager.property_modified): Fix a port J5 missed when porting
to the new D-BUS Python bindings (I just love weakly-typed languages)
Index: DeviceManager.py
===================================================================
RCS file: /cvs/hal/hal/tools/device-manager/DeviceManager.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- DeviceManager.py 27 Apr 2005 19:35:47 -0000 1.23
+++ DeviceManager.py 13 May 2005 16:27:10 -0000 1.24
@@ -148,12 +148,12 @@
if property_name=="info.parent":
self.update_device_list()
else:
- device_udi_obj = self.hal_service.get_object(device_udi,
- "org.freedesktop.Hal.Device")
+ device_udi_obj = self.bus.get_object("org.freedesktop.Hal", device_udi)
device_obj = self.udi_to_device(device_udi)
- if device_udi_obj.PropertyExists(property_name):
- device_obj.properties[property_name] = device_udi_obj.GetProperty(property_name)
+ if device_udi_obj.PropertyExists(property_name, dbus_interface="org.freedesktop.Hal.Device"):
+ device_obj.properties[property_name] = device_udi_obj.GetProperty(property_name,
+ dbus_interface="org.freedesktop.Hal.Device")
print " value=%s"%(device_obj.properties[property_name])
else:
if device_obj != None:
More information about the hal-commit
mailing list