Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Gambier
erp5
Commits
6f9b579d
Commit
6f9b579d
authored
Sep 12, 2019
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type.patches.WorkflowTool: Replace literal severity with symbolic name.
parent
2e10569d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Type/patches/WorkflowTool.py
product/ERP5Type/patches/WorkflowTool.py
+2
-2
No files found.
product/ERP5Type/patches/WorkflowTool.py
View file @
6f9b579d
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment