Commit 6f9b579d authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type.patches.WorkflowTool: Replace literal severity with symbolic name.

parent 2e10569d
...@@ -642,7 +642,7 @@ def WorkflowTool_refreshWorklistCache(self): ...@@ -642,7 +642,7 @@ def WorkflowTool_refreshWorklistCache(self):
if len(worklist_dict): if len(worklist_dict):
Base_zClearWorklistTable = getattr(self, 'Base_zClearWorklistTable', None) Base_zClearWorklistTable = getattr(self, 'Base_zClearWorklistTable', None)
if Base_zClearWorklistTable is None: if Base_zClearWorklistTable is None:
LOG('WorkflowTool', 100, 'Base_zClearWorklistTable cannot be found. ' \ LOG('WorkflowTool', WARNING, 'Base_zClearWorklistTable cannot be found. ' \
'Falling back to former refresh method. Please update ' \ 'Falling back to former refresh method. Please update ' \
'erp5_worklist_sql business template.') 'erp5_worklist_sql business template.')
self.Base_zCreateWorklistTable() self.Base_zCreateWorklistTable()
...@@ -713,7 +713,7 @@ def WorkflowTool_refreshWorklistCache(self): ...@@ -713,7 +713,7 @@ def WorkflowTool_refreshWorklistCache(self):
# OperationalError 1054 = unknown column # OperationalError 1054 = unknown column
if isinstance(error_value, OperationalError) and error_value[0] != 1054: if isinstance(error_value, OperationalError) and error_value[0] != 1054:
raise raise
LOG('WorkflowTool', 100, 'Insertion in worklist cache table ' \ LOG('WorkflowTool', WARNING, 'Insertion in worklist cache table ' \
'failed. Recreating table and retrying.', 'failed. Recreating table and retrying.',
error=sys.exc_info()) error=sys.exc_info())
self.Base_zCreateWorklistTable() self.Base_zCreateWorklistTable()
......
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