Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2007-03-06 16:50:49 (GMT)
committer Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>2007-03-06 16:50:49 (GMT)
commit2eedfd3d90eae4cc84d22a32d15b61c2be5c93c9 (patch)
treee3b6f0dbb4a9f8895e0aa60ce755a41efc877160 /services
parent7e1c8ef31fdfc28a0701a1d9224e406288d9f1ad (diff)
implement activity GetChannels
Diffstat (limited to 'services')
-rw-r--r--services/presence2/activity.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/services/presence2/activity.py b/services/presence2/activity.py
index 90ed574..5fe9217 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]