[telepathy-butterfly/master] Fixed signature of Statuses property (SimplePresence interface)
Louis-Francis Ratté-Boulianne
louis-francis.ratte-boulianne at collabora.co.uk
Fri Aug 28 13:44:42 PDT 2009
---
butterfly/presence.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/butterfly/presence.py b/butterfly/presence.py
index d072d2a..302fe4f 100644
--- a/butterfly/presence.py
+++ b/butterfly/presence.py
@@ -22,6 +22,7 @@
import logging
import time
+import dbus
import telepathy
import telepathy.constants
import telepathy.errors
@@ -235,7 +236,7 @@ class ButterflyPresence(telepathy.server.ConnectionInterfacePresence,
def get_statuses(self):
# you get one of these for each status
# {name:(Type, May_Set_On_Self, Can_Have_Message}
- return {
+ return dbus.Dictionary({
ButterflyPresenceMapping.ONLINE:(
telepathy.CONNECTION_PRESENCE_TYPE_AVAILABLE,
True, True),
@@ -263,7 +264,7 @@ class ButterflyPresence(telepathy.server.ConnectionInterfacePresence,
ButterflyPresenceMapping.OFFLINE:(
telepathy.CONNECTION_PRESENCE_TYPE_OFFLINE,
True, False)
- }
+ }, signature='s(ubb)')
# papyon.event.ContactEventInterface
def on_contact_presence_changed(self, contact):
--
1.5.6.5
More information about the telepathy-commits
mailing list