From 217ea2dca4f69def9811cf3ad09fc0888178b192 Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 06 Apr 2009 17:12:21 +0000 Subject: Revert "Merge branch 'lp353185'" This reverts commit 92a5c29ae2cf5afa8857b581a38f3d463fd83732. --- (limited to 'src/sugar/tutorius/actions.py') diff --git a/src/sugar/tutorius/actions.py b/src/sugar/tutorius/actions.py index 7681dea..60ccd8b 100644 --- a/src/sugar/tutorius/actions.py +++ b/src/sugar/tutorius/actions.py @@ -213,19 +213,4 @@ class WidgetIdentifyAction(Action): if self._dialog: self._dialog.destroy() -class ChainAction(Action): - """Utility class to allow executing actions in a specific order""" - def __init__(self, *actions): - """ChainAction(action1, ... ) builds a chain of actions""" - self._actions = actions - - def do(self,**kwargs): - """do() each action in the chain""" - for act in self._actions: - act.do(**kwargs) - - def undo(self): - """undo() each action in the chain, starting with the last""" - for act in reversed(self._actions): - act.undo() -- cgit v0.9.1