diff options
Diffstat (limited to 'src/sugar/tutorius/core.py')
-rw-r--r-- | src/sugar/tutorius/core.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sugar/tutorius/core.py b/src/sugar/tutorius/core.py index f817ba9..a699bbb 100644 --- a/src/sugar/tutorius/core.py +++ b/src/sugar/tutorius/core.py @@ -113,6 +113,8 @@ class State: this state @param tutorial The higher level container of the state """ + self.name = name + self._actions = action_list # Unused for now @@ -257,8 +259,7 @@ class FiniteStateMachine(State): state.set_tutorial(tutorial) else: raise RuntimeWarning(\ - "The FSM %s is already associated with a tutorial."%self.name\ - ) + "The FSM %s is already associated with a tutorial."%self.name) def setup(self): """ @@ -328,6 +329,9 @@ class FiniteStateMachine(State): for action in self.actions: action.undo() + # TODO : It might be nice to have a start() and stop() method for the + # FSM. + #Unused for now ## def verify(self): ## """Verify if the current state passes its tests""" |