Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/vault.py
diff options
context:
space:
mode:
authormike <michael.jmontcalm@gmail.com>2009-11-04 15:20:30 (GMT)
committer mike <michael.jmontcalm@gmail.com>2009-11-04 15:20:30 (GMT)
commit0db118e6320d157748fad0b4d7a31beebcf5b301 (patch)
tree80fc57cfbb02a82cbcf58f0d0e4e2c41cfa190df /tutorius/vault.py
parent58a99dcf76cb1a9f85fa2873f9a2e7b46470ae8b (diff)
parentd50c3cd98d6e99c7311286559136dc1a775a326d (diff)
Merge branch 'master' of git://git.sugarlabs.org/tutorius/mainline
Diffstat (limited to 'tutorius/vault.py')
-rw-r--r--tutorius/vault.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tutorius/vault.py b/tutorius/vault.py
index 9215e8d..b455a52 100644
--- a/tutorius/vault.py
+++ b/tutorius/vault.py
@@ -28,11 +28,11 @@ import uuid
import xml.dom.minidom
from xml.dom import NotFoundErr
import zipfile
-
-from sugar.tutorius import addon
-from sugar.tutorius.core import Tutorial, State, FiniteStateMachine
from ConfigParser import SafeConfigParser
+from . import addon
+from .core import Tutorial, State, FiniteStateMachine
+
logger = logging.getLogger("tutorius")
# this is where user installed/generated tutorials will go
@@ -73,7 +73,7 @@ class Vault(object):
given activity.
@param activity_name the name of the activity associated with this tutorial. None means ALL activities
- @param activity_vers the version number of the activity to find tutorail for. 0 means find for ANY version. Ifactivity_ame is None, version number is not used
+ @param activity_vers the version number of the activity to find tutorail for. 0 means find for ANY version. If activity_name is None, version number is not used
@returns a map of tutorial {names : GUID}.
"""
# check both under the activity data and user installed folders
@@ -835,8 +835,7 @@ class TutorialBundler(object):
raise IOError(2, "Neither the global nor the bundle directory contained the tutorial with GUID %s"%guid)
- @staticmethod
- def write_fsm(fsm):
+ def write_fsm(self, fsm):
"""
Save fsm to disk. If a GUID parameter is provided, the existing GUID is