Commit 2a21285f authored by wenjie.zheng's avatar wenjie.zheng

InteractionWorkflow.py: code clean up / simplified.

parent 058a31b1
......@@ -158,9 +158,7 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
is supported in the current state.
'''
tdef = self._getOb('interaction_' + tid)
if tdef is not None and self._checkTransitionGuard(tdef, ob):
return 1
return 0
return tdef is not None and self._checkTransitionGuard(tdef, ob)
def _checkTransitionGuard(self, tdef, document, **kw):
if tdef.temporary_document_disallowed:
......
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