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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
30af5d83
Commit
30af5d83
authored
Feb 10, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool: py3
parent
2517a86a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
product/ERP5Type/Tool/WorkflowTool.py
product/ERP5Type/Tool/WorkflowTool.py
+1
-1
product/ERP5Type/patches/WorkflowTool.py
product/ERP5Type/patches/WorkflowTool.py
+5
-1
No files found.
product/ERP5Type/Tool/WorkflowTool.py
View file @
30af5d83
...
...
@@ -839,7 +839,7 @@ def generateNestedQuery(getQuery, priority_list, criterion_dict,
criterion_worklist_id_dict
=
worklist_id_dict
.
copy
()
# Do not use iterkeys since the dictionary will be modified in the
# loop
for
worklist_id
in
criterion_worklist_id_dict
.
keys
(
):
for
worklist_id
in
list
(
criterion_worklist_id_dict
):
if
worklist_id
not
in
possible_worklist_id_dict
:
del
criterion_worklist_id_dict
[
worklist_id
]
else
:
...
...
product/ERP5Type/patches/WorkflowTool.py
View file @
30af5d83
...
...
@@ -13,6 +13,7 @@
#
##############################################################################
import
six
from
Products.ERP5Type.Workflow
import
WorkflowHistoryList
as
NewWorkflowHistoryList
class
WorkflowHistoryList
(
NewWorkflowHistoryList
):
...
...
@@ -22,13 +23,16 @@ class WorkflowHistoryList(NewWorkflowHistoryList):
def
__getstate__
(
self
):
return
self
.
_prev
,
self
.
_log
def
__
nonzero
__
(
self
):
def
__
bool
__
(
self
):
# not faster than __len__ but avoids migration
if
self
.
_log
:
return
True
assert
self
.
_prev
is
None
return
False
if
six
.
PY2
:
__nonzero__
=
__bool__
@
property
def
_rotate
(
self
):
self
.
_migrate
()
...
...
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