From 2eedfd3d90eae4cc84d22a32d15b61c2be5c93c9 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 6 Mar 2007 17:50:49 +0100 Subject: [PATCH] implement activity GetChannels --- services/presence2/activity.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/services/presence2/activity.py b/services/presence2/activity.py index 90ed5746..5fe92175 100644 --- a/services/presence2/activity.py +++ b/services/presence2/activity.py @@ -81,7 +81,7 @@ class Activity(dbus.service.Object): @dbus.service.method(_ACTIVITY_INTERFACE, in_signature="", out_signature="soao") def GetChannels(self): - raise NotImplementedError("not implemented yet") + return self.get_channels() # methods def object_path(self): @@ -114,3 +114,8 @@ class Activity(dbus.service.Object): if not self._joined: self._activity_text_channel = self._tp.join_activity(self._activity_id) self._joined = True + + def get_channels(self): + conn = self._tp.get_connection() + # FIXME add tubes and others channels + return str(conn.service_name), conn.object_path, [self._activity_text_channel.object_path]