diff options
Diffstat (limited to 'tutorius/engine.py')
-rw-r--r-- | tutorius/engine.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tutorius/engine.py b/tutorius/engine.py index dda9f3f..e77a018 100644 --- a/tutorius/engine.py +++ b/tutorius/engine.py @@ -1,10 +1,10 @@ import logging import dbus.mainloop.glib from jarabe.model import shell - -from sugar.tutorius.bundler import TutorialStore from sugar.bundle.activitybundle import ActivityBundle +from .vault import Vault + class Engine: """ Driver for the execution of tutorials @@ -25,11 +25,9 @@ class Engine: self._tutorial.detach() self._tutorial = None - store = TutorialStore() - #Get the active activity from the shell activity = self._shell.get_active_activity() - self._tutorial = store.load_tutorial(tutorialID, bundle_path=activity.get_bundle_path()) + self._tutorial = Vault.loadTutorial(tutorialID) #TProbes automatically use the bundle id, available from the ActivityBundle bundle = ActivityBundle(activity.get_bundle_path()) |