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
785676a9
Commit
785676a9
authored
Feb 10, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool: py3
parent
c1cb04fb
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 @
785676a9
...
@@ -839,7 +839,7 @@ def generateNestedQuery(getQuery, priority_list, criterion_dict,
...
@@ -839,7 +839,7 @@ def generateNestedQuery(getQuery, priority_list, criterion_dict,
criterion_worklist_id_dict
=
worklist_id_dict
.
copy
()
criterion_worklist_id_dict
=
worklist_id_dict
.
copy
()
# Do not use iterkeys since the dictionary will be modified in the
# Do not use iterkeys since the dictionary will be modified in the
# loop
# 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
:
if
worklist_id
not
in
possible_worklist_id_dict
:
del
criterion_worklist_id_dict
[
worklist_id
]
del
criterion_worklist_id_dict
[
worklist_id
]
else
:
else
:
...
...
product/ERP5Type/patches/WorkflowTool.py
View file @
785676a9
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#
#
##############################################################################
##############################################################################
import
six
from
Products.ERP5Type.Workflow
import
WorkflowHistoryList
as
NewWorkflowHistoryList
from
Products.ERP5Type.Workflow
import
WorkflowHistoryList
as
NewWorkflowHistoryList
class
WorkflowHistoryList
(
NewWorkflowHistoryList
):
class
WorkflowHistoryList
(
NewWorkflowHistoryList
):
...
@@ -22,13 +23,16 @@ class WorkflowHistoryList(NewWorkflowHistoryList):
...
@@ -22,13 +23,16 @@ class WorkflowHistoryList(NewWorkflowHistoryList):
def
__getstate__
(
self
):
def
__getstate__
(
self
):
return
self
.
_prev
,
self
.
_log
return
self
.
_prev
,
self
.
_log
def
__
nonzero
__
(
self
):
def
__
bool
__
(
self
):
# not faster than __len__ but avoids migration
# not faster than __len__ but avoids migration
if
self
.
_log
:
if
self
.
_log
:
return
True
return
True
assert
self
.
_prev
is
None
assert
self
.
_prev
is
None
return
False
return
False
if
six
.
PY2
:
__nonzero__
=
__bool__
@
property
@
property
def
_rotate
(
self
):
def
_rotate
(
self
):
self
.
_migrate
()
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