Commit 8cc9ca88 authored by Mame Coumba Sall's avatar Mame Coumba Sall

Modify to create worklist_cache table

parent f4652d73
......@@ -504,6 +504,17 @@ def WorkflowTool_listActions(self, info=None, object=None, src__=False):
% grouped_worklist_dict.keys(),
error=sys.exc_info())
continue
except ProgrammingError, error_value:
# 1146 = table does not exist
if not use_cache or error_value[0] != 1146:
raise
try:
self.Base_zCreateWorklistTable()
except ProgrammingError, error_value:
# 1050 = table exists (alarm run just a bit too late)
if error_value[0] != 1050:
raise
catalog_brain_result = []
if src__:
action_list.append(catalog_brain_result)
else:
......
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