Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorMorgan Collett <morgan.collett@gmail.com>2007-08-21 10:39:05 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2007-08-21 10:39:05 (GMT)
commitcfb054124936cd8256703ed172a9417b7fe3811e (patch)
tree875e1059e3a8c78b65a0cefb4b56843ee32e9dd0 /sugar
parent0408ea189d3ed0134b2fb9bc0ae54c75b9d950cd (diff)
Clean up leave() and callbacks
Diffstat (limited to 'sugar')
-rw-r--r--sugar/presence/activity.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sugar/presence/activity.py b/sugar/presence/activity.py
index 2df8793..bdfc74f 100644
--- a/sugar/presence/activity.py
+++ b/sugar/presence/activity.py
@@ -167,16 +167,17 @@ class Activity(gobject.GObject):
return bus_name, connection, channels
def _leave_cb(self):
- # XXX Is this the right thing to do?
+ """Callback for async action of leaving shared activity."""
self.emit("joined", False, "left activity")
def _leave_error_cb(self, err):
- # XXX We are closing down anyway
+ """Callback for error in async leaving of shared activity.
+
+ XXX Add logging!"""
pass
def leave(self):
"""Leave this shared activity"""
- # FIXME
self._joined = False
self._activity.Leave(reply_handler=self._leave_cb,
error_handler=self._leave_error_cb)