Make shell responsible for activity ID generation

Enables tracking of activity launch throughout the whole process, so that
the shell can be aware of the activity ID from the moment the activity
is started by the shell, until the activity becomes active.  Previously,
the activity itself generated its own ID and told the shell what it was.
This commit is contained in:
Dan Williams
2007-01-06 16:29:13 -05:00
parent f50d9f5f9a
commit b27257fadb
4 changed files with 56 additions and 13 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ from sugar.graphics.menuicon import MenuIcon
from view.clipboardmenu import ClipboardMenu
from sugar.activity import ActivityFactory
from sugar.clipboard import clipboardservice
from sugar import util
class ClipboardIcon(MenuIcon):
@@ -53,7 +54,7 @@ class ClipboardIcon(MenuIcon):
if activity_id:
activity = ActivityFactory.create(activity_id)
activity.start()
activity.start(util.unique_id())
activity.execute("open_document", [self._object_id])
def _popup_action_cb(self, popup, action):