From f862db94a76fcb0d0f9e144b1af614e2c37bce9b Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 07 Dec 2009 19:48:01 +0000 Subject: Creator : Adding sources to installed addons --- (limited to 'tutorius/creator.py') diff --git a/tutorius/creator.py b/tutorius/creator.py index ca68ca6..8964b7f 100644 --- a/tutorius/creator.py +++ b/tutorius/creator.py @@ -265,6 +265,10 @@ class Creator(Object): LOGGER.debug("Creator :: Adding an action = %s"%(action_type)) action = addon.create(action_type) + # Configure the action prior to installing it + # Currently, this consists of writing its source + action.source = self._probe_mgr.currentActivity + return_cb = partial(self._action_installed_cb, action) self._probe_mgr.install(action, action_installed_cb=return_cb, @@ -299,6 +303,10 @@ class Creator(Object): event_type = self._propedit.events_list[path][ToolBox.ICON_NAME] event = self._probe_mgr.create_event(event_type) + # Configure the event prior to installing it + # Currently, this consists of writing its source + event.source = self._probe_mgr.currentActivity + event_filters = self._tutorial.get_transition_dict(self._state) # if not at the end of tutorial -- cgit v0.9.1