Commit 81d68346 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

State.py: change the transition execution way.

parent 3470d783
...@@ -78,7 +78,8 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, XMLMatrix): ...@@ -78,7 +78,8 @@ class State(IdAsReferenceMixin("state_", "prefix"), XMLObject, XMLMatrix):
if transition not in self.getAvailableTransitionList(document): if transition not in self.getAvailableTransitionList(document):
raise StateError raise StateError
else: else:
transition.execute(document, form_kw=form_kw) self.getParent()._executeTransition(document, transition, form_kw=form_kw)
#transition.execute(document, form_kw=form_kw)
self.getParent().updateRoleMappingsFor(document) self.getParent().updateRoleMappingsFor(document)
def undoTransition(self, document): def undoTransition(self, document):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment