diff options
author | mike <michael.jmontcalm@gmail.com> | 2009-12-07 19:48:01 (GMT) |
---|---|---|
committer | mike <michael.jmontcalm@gmail.com> | 2009-12-07 20:00:34 (GMT) |
commit | f862db94a76fcb0d0f9e144b1af614e2c37bce9b (patch) | |
tree | 30383f0cbe2be709af055ae34b4728dcbbd11d50 /tutorius | |
parent | 3ae0ac29b2318b82a7e26ed0546388aa261313b3 (diff) |
Creator : Adding sources to installed addons
Diffstat (limited to 'tutorius')
-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 |