Clue dbus-python into the return type of get_data()

This commit is contained in:
Dan Williams 2007-03-01 13:23:29 -05:00
parent 97d719f795
commit a3e2803eb8

View File

@ -136,7 +136,7 @@ class ObjectDBusHelper(dbus_helpers.FallbackObject):
if not dbus_object_path: if not dbus_object_path:
raise RuntimeError("Need the dbus object path.") raise RuntimeError("Need the dbus object path.")
uid = _get_uid_from_op(dbus_object_path) uid = _get_uid_from_op(dbus_object_path)
return self._parent.get_data(uid) return dbus.ByteArray(self._parent.get_data(uid))
@dbus_helpers.method(_DS_OBJECT_DBUS_INTERFACE, @dbus_helpers.method(_DS_OBJECT_DBUS_INTERFACE,
in_signature="ay", out_signature="i", object_path_keyword="dbus_object_path") in_signature="ay", out_signature="i", object_path_keyword="dbus_object_path")