Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/presence
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-05-24 10:19:39 (GMT)
committer Simon McVittie <simon.mcvittie@collabora.co.uk>2007-05-24 17:56:20 (GMT)
commitc3e54133a4b346934acfc283743525268e9b293c (patch)
tree6c03af8688db70360e652ccc4673463827bd80a7 /services/presence
parentcb279a14187a6ca85d62db46455959a2f41bbfab (diff)
services/presence/server_plugin: make bytes_to_string() unnecessary by requesting a dbus.ByteArray
Diffstat (limited to 'services/presence')
-rw-r--r--services/presence/server_plugin.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py
index cfa1819..97f06a8 100644
--- a/services/presence/server_plugin.py
+++ b/services/presence/server_plugin.py
@@ -739,15 +739,13 @@ class ServerPlugin(gobject.GObject):
self._contact_offline(handle)
return
- # Convert key from dbus byte array to python string
- props["key"] = psutils.bytes_to_string(props["key"])
-
self._conn[CONN_INTERFACE_ALIASING].RequestAliases([handle],
reply_handler=lambda *args: self._contact_online_aliases_cb(handle, props, *args),
error_handler=lambda e: self._contact_online_aliases_error_cb(handle, props, True, e))
def _contact_online_request_properties(self, handle, tries):
self._conn[CONN_INTERFACE_BUDDY_INFO].GetProperties(handle,
+ byte_arrays=True,
reply_handler=lambda *args: self._contact_online_properties_cb(handle, *args),
error_handler=lambda e: self._contact_online_properties_error_cb(handle, tries, e))
return False