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
Carlos Ramos Carreño
erp5
Commits
046d5d3c
Commit
046d5d3c
authored
Feb 10, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool: py3
parent
2970f8f4
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 @
046d5d3c
...
...
@@ -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 @
046d5d3c
...
...
@@ -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