From 94463df4d57995a91add81f0aadd05411eb3e93b Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sat, 3 May 2014 10:44:47 +0200 Subject: [PATCH] allow actions also in previous work items of a run --- organize/work.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/organize/work.py b/organize/work.py index 0fe6102..d380d46 100644 --- a/organize/work.py +++ b/organize/work.py @@ -225,8 +225,8 @@ class WorkItem(Stateful, Track): return list(getParent(self).query(runId=self.runId)) def doAction(self, action, userName, **kw): - if self != self.currentWorkItems[-1]: - raise ValueError("Actions are only allowed on the last item of a run.") + #if self != self.currentWorkItems[-1]: + # raise ValueError("Actions are only allowed on the last item of a run.") if action not in [t.name for t in self.getAvailableTransitions()]: raise ValueError("Action '%s' not allowed in state '%s'" % (action, self.state))