Commit 9a9342aa authored by wenjie.zheng's avatar wenjie.zheng

ERP5TypeTestCase.py: add log to record dynamical workflow convertion.

parent cf007eeb
......@@ -922,6 +922,8 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
workflow_tool = self.portal.portal_workflow
if workflow_tool.getPortalType() != "Workflow Tool":
raise NotImplementedError("Workflow tool has not been converted!")
start = DateTime()
for workflow_id in workflow_tool:
workflow = workflow_tool._getOb(workflow_id)
if workflow.getPortalType() not in ['Workflow', 'Interaction Workflow', 'Configuration Workflow']:
......@@ -936,7 +938,8 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
type_workflow_list = ptype.getTypeWorkflowList()
if workflow_id not in type_workflow_list:
ptype.addTypeWorkflowList(workflow_id)
self.commit()
LOG("dynamicalWorkflowConvertion, converting (workflow_id, time)", 0, (workflow_id, (DateTime()-start)*86400))
self.commit()
def setUpERP5Site(self,
......
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