Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/activity/activityservice.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/activity/activityservice.py')
-rw-r--r--sugar/activity/activityservice.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/sugar/activity/activityservice.py b/sugar/activity/activityservice.py
index bff42fa..e5b8956 100644
--- a/sugar/activity/activityservice.py
+++ b/sugar/activity/activityservice.py
@@ -29,6 +29,21 @@ class ActivityService(dbus.service.Object):
tightly control what stuff passes through the dbus python bindings."""
def __init__(self, activity):
+ """Initialise the service for the given activity
+
+ activity -- sugar.activity.activity.Activity instance,
+ must have already bound it's window (i.e. it must
+ have already initialised to the point of having
+ the X window available).
+
+ Creates dbus services that use the xid of the activity's
+ root window as discriminants among all active services
+ of this type. That is, the services are all available
+ as names/paths derived from the xid for the window.
+
+ The various methods exposed on dbus are just forwarded
+ to the client Activity object's equally-named methods.
+ """
xid = activity.window.xid
service_name = _ACTIVITY_SERVICE_NAME + '%d' % xid
object_path = _ACTIVITY_SERVICE_PATH + "/%s" % xid