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

ERP5/patches/DCWorkflow.py: add script proxy_roles in showAsXML.

parent b0ae925d
......@@ -1009,7 +1009,8 @@ def DCWorkflowDefinition_showAsXML(self, root=None):
# 5. Script as XML
script_reference_list = []
script_id_list = sorted(self.scripts.keys())
script_prop_id_to_show = {'body':'string', 'parameter_signature':'string'}
script_prop_id_to_show = {'body':'string', 'parameter_signature':'string',
'proxy_roles':'tokens'}
for sid in script_id_list:
script_reference_list.append(sid)
scripts = SubElement(workflow, 'scripts', attrib=dict(script_list=str(script_reference_list),
......@@ -1023,6 +1024,8 @@ def DCWorkflowDefinition_showAsXML(self, root=None):
property_value = sdef.getBody()
elif property_id == 'parameter_signature':
property_value = sdef.getParams()
elif property_id == 'proxy_roles':
property_value = sdef.getProxyRole()
else:
property_value = getattr(sdef, property_id)
property_type = script_prop_id_to_show[property_id]
......
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