Commit 02ec7e00 authored by wenjie.zheng's avatar wenjie.zheng

ERP5TypeTestCase.py: remove unused logs.

parent f3bf5a7e
......@@ -931,7 +931,6 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
type_workflow_dict = workflow_tool.getChainsByType()
for workflow_id in workflow_tool.objectIds():
start = DateTime()
LOG(" ===== dynamicalWorkflowConvertion ", 0, " in ERP5TypeTestCase.py 932.")
# Do not convert workflow's live test related workflows.
if workflow_id in ['testing_workflow', 'testing_interaction_workflow',\
'testing_workflow_backup', 'testing_interaction_workflow_backup']:
......@@ -947,10 +946,8 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
# 2. assign ERP5 Workflow to portal type:
if workflow_id not in ptype.getTypeWorkflowList():
ptype.addTypeWorkflowList(workflow_id)
LOG(" | Add workflow '%s' to type '%s'"%(workflow_id, ptype_id),0," in ERP5TypeTestCase.py 946")
if ptype not in type_value_list:
type_value_list.append(ptype)
LOG(" | converting '%s' takes '%s')"%(workflow_id, (DateTime()-start)*86400),0," in ERP5TypeTestCase.py 951")
# 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:
......@@ -1071,7 +1068,6 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
setattr(app,'isIndexable', 1)
portal.portal_catalog.manage_hotReindexAll()
portal.portal_types.resetDynamicDocumentsOnceAtTransactionBoundary()
LOG(" ***** dynamicWorkflowConversion ***** ",0," in ERP5TypeTestCase.py 1070.")
self.dynamicWorkflowConversion()
self.getPortal().erp5_sql_connection.manage_test("update message_queue set processing_node=0, priority=1 where processing_node=-1")
self.getPortal().erp5_sql_connection.manage_test("update message set processing_node=0, priority=2 where processing_node=-1")
......
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