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
Paul Graydon
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
Changes
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 @@
...
@@ -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