Commit ae19b4cc authored by iv's avatar iv

ERP5Workflow: remove logs

parent 50dd666d
......@@ -1013,17 +1013,14 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
continue
workflow = workflow_tool._getOb(workflow_id)
if workflow.getPortalType() not in ['Workflow', 'Interaction Workflow', 'Configuration Workflow']:
LOG("### workflow id" , 0, workflow_id)
new_workflow = workflow_tool.dc_workflow_asERP5Object(workflow, is_temporary=False)
workflow_tool.reassignWorkflow(workflow_id)
self.commit()
LOG("### reassigned" , 0, workflow_id)
# force convert edit_workflow: Why have to load edit_workflow this way?
edit_workflow = workflow_tool._getOb('edit_workflow', None)
if edit_workflow is not None:
new_workflow = workflow_tool.dc_workflow_asERP5Object(edit_workflow, is_temporary=False)
workflow_tool.reassignWorkflow('edit_workflow')
LOG("### edit workflow" , 0, "after reassignment")
self.commit()
# Reset the original workflows assignement order.
for type_value in sorted(type_tool.objectValues()):
......
......@@ -513,7 +513,6 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
return id_list
def getTransitionValueById(self, transition_reference):
LOG ("### getTransitionValueById", 0, transition_reference)
return self._getOb('transition_' + transition_reference, None)
def getTransitionValueList(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