Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/creator.py
diff options
context:
space:
mode:
authormike <michael.jmontcalm@gmail.com>2009-12-09 02:58:20 (GMT)
committer mike <michael.jmontcalm@gmail.com>2009-12-09 03:07:06 (GMT)
commit394001c2e7c8585b7152e8f5888e340a0c7a1bbc (patch)
tree6254b8f0a17768c9e47aeafa5ff2c1992ff6d33c /tutorius/creator.py
parentcf6785d168eaf3ed5505705478a6aea05ad3da98 (diff)
Integration with Sugar : Exposing set_current_act on Service
Correcting two interface mismatches (install error on translator, subscribe error on creator) Changing MessageButtonNext to ButtonNext
Diffstat (limited to 'tutorius/creator.py')
-rw-r--r--tutorius/creator.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tutorius/creator.py b/tutorius/creator.py
index 6ba7011..7d9153b 100644
--- a/tutorius/creator.py
+++ b/tutorius/creator.py
@@ -306,8 +306,17 @@ class Creator(Object):
"""
event_type = self._propedit.events_list[path][ToolBox.ICON_NAME]
- event = self._probe_mgr.create_event(event_type)
+ event = self._probe_mgr.create_event(event_type,
+ event_created_cb=partial(self._event_created, event_type))
+ def _event_created(self, event_type, event):
+ """
+ Callback to execute when the creation of a new event is complete.
+
+ @param event_type The type of event that was created
+ @param event The event that was instanciated
+ """
+ LOGGER.debug("Creator :: _event_created, now setting source and adding inside tutorial")
# Configure the event prior to installing it
# Currently, this consists of writing its source
event.source = self._probe_mgr.currentActivity