diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-09 13:53:10 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-09 13:53:10 (GMT) |
commit | 95d9b7fe8e7cbde413ef5f937cc1dda2b7fa8813 (patch) | |
tree | 733abfdda232625b72d52cc92929fc8d78ff5696 /sugar | |
parent | a9a65f42dfe4f0ca4eb7c916ec4afc9b3e376c69 (diff) |
More work on the chat. Fix terminal api
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/activity/Activity.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sugar/activity/Activity.py b/sugar/activity/Activity.py index 46848a4..ec745b2 100644 --- a/sugar/activity/Activity.py +++ b/sugar/activity/Activity.py @@ -60,6 +60,11 @@ class ActivityDbusService(dbus.service.Object): """Returns True if the activity is shared on the mesh.""" return self._activity.get_shared() + @dbus.service.method(ACTIVITY_INTERFACE, + in_signature="sao", out_signature="") + def execute(self, command, args): + self._activity.execute(command, args) + class Activity(gtk.Window): """Base Activity class that all other Activities derive from.""" @@ -133,3 +138,7 @@ class Activity(gtk.Window): self._service = self._pservice.share_activity(self, self._default_type, properties) self._shared = True + + def execute(self, command, args): + """Execute the given command with args""" + pass |