Commit 7aafd50e authored by Arnaud Fontaine's avatar Arnaud Fontaine

WIP

parent b8fa7d8c
...@@ -88,11 +88,12 @@ class GuardableMixin(object): ...@@ -88,11 +88,12 @@ class GuardableMixin(object):
break break
else: else:
return False return False
if self.guard_expression and self.guard_expression.text: guard_expression = self.getGuardExpression()
if guard_expression and guard_expression.text:
expression_context = createExprContext(StateChangeInfo(current_object, expression_context = createExprContext(StateChangeInfo(current_object,
workflow, workflow,
kwargs=kw)) kwargs=kw))
if not self.guard_expression(expression_context): if not guard_expression(expression_context):
return False return False
return True return True
......
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