Commit 607e36a1 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Calling 'manage_changeWorkflows' only once is enough.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5365 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 91915949
...@@ -1077,9 +1077,9 @@ class PortalTypeTemplateItem(ObjectTemplateItem): ...@@ -1077,9 +1077,9 @@ class PortalTypeTemplateItem(ObjectTemplateItem):
obj = object_list[path] obj = object_list[path]
portal_type = obj.id portal_type = obj.id
chain_dict['chain_%s' % portal_type] = \ chain_dict['chain_%s' % portal_type] = \
self._workflow_chain_archive[portal_type] self._workflow_chain_archive[portal_type]
context.portal_workflow.manage_changeWorkflows(default_chain, context.portal_workflow.manage_changeWorkflows(default_chain,
props=chain_dict) props=chain_dict)
def _importFile(self, file_name, file): def _importFile(self, file_name, file):
if 'workflow_chain_type.xml' in file_name: if 'workflow_chain_type.xml' in file_name:
......
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