Clue dbus-python into the return type of get_data()
This commit is contained in:
parent
97d719f795
commit
a3e2803eb8
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user