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
da590609
Commit
da590609
authored
Apr 03, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! WorkflowTool: py3
parent
9a2bacfd
Pipeline
#33816
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
product/ERP5Type/patches/WorkflowTool.py
product/ERP5Type/patches/WorkflowTool.py
+5
-1
No files found.
product/ERP5Type/patches/WorkflowTool.py
View file @
da590609
...
...
@@ -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