Commit 43d3a8f4 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

Workflow.py: do not convert transition guard expression into tuple in showAsXML.

parent 2003e343
...@@ -834,7 +834,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject): ...@@ -834,7 +834,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
property_value = tdef.getExpression() property_value = tdef.getExpression()
if property_value is None or property_value == []: if property_value is None or property_value == []:
property_value = '' property_value = ''
else: elif property_id != 'expr':
property_value = tuple(property_value) property_value = tuple(property_value)
sub_object = SubElement(guard, property_id, attrib=dict(type='guard configuration')) sub_object = SubElement(guard, property_id, attrib=dict(type='guard configuration'))
else: else:
......
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