diff options
-rw-r--r-- | tutorius/creator.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |