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
62566389
Commit
62566389
authored
Oct 18, 2022
by
Kazuhiko Shiozaki
Committed by
Jérome Perrin
Jan 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2/py3: use six.get_unbound_function.
parent
07032742
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testWorkflowHistoryList.py
...em/portal_components/test.erp5.testWorkflowHistoryList.py
+2
-1
bt5/erp5_dummy_movement/DocumentTemplateItem/portal_components/document.erp5.DummyMovement.py
...lateItem/portal_components/document.erp5.DummyMovement.py
+2
-2
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testWorkflowHistoryList.py
View file @
62566389
...
@@ -35,8 +35,9 @@ from Products.ERP5Type.patches.WorkflowTool import \
...
@@ -35,8 +35,9 @@ from Products.ERP5Type.patches.WorkflowTool import \
WorkflowHistoryList
as
LegacyWorkflowHistoryList
WorkflowHistoryList
as
LegacyWorkflowHistoryList
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
six.moves
import
range
from
six.moves
import
range
from
six
import
get_unbound_function
orig_maybe_rotate
=
DoublyLinkList
.
_maybe_rotate
.
__func__
orig_maybe_rotate
=
get_unbound_function
(
DoublyLinkList
.
_maybe_rotate
)
def
_maybe_rotate
(
self
):
def
_maybe_rotate
(
self
):
if
len
(
self
.
_log
)
<
16
:
if
len
(
self
.
_log
)
<
16
:
...
...
bt5/erp5_dummy_movement/DocumentTemplateItem/portal_components/document.erp5.DummyMovement.py
View file @
62566389
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
erp5.component.document.Movement
import
Movement
from
erp5.component.document.Movement
import
Movement
from
six
import
get_unbound_function
class
DummyMovement
(
Movement
):
class
DummyMovement
(
Movement
):
"""Dummy Movement for testing purposes."""
"""Dummy Movement for testing purposes."""
...
@@ -72,7 +72,7 @@ class DummyMovement(Movement):
...
@@ -72,7 +72,7 @@ class DummyMovement(Movement):
parent
=
self
.
getParentValue
()
parent
=
self
.
getParentValue
()
if
isinstance
(
parent
,
DummyDelivery
):
if
isinstance
(
parent
,
DummyDelivery
):
self
=
parent
self
=
parent
return
DummyDelivery
.
getSimulationState
(
self
)
return
get_unbound_function
(
DummyDelivery
.
getSimulationState
)
(
self
)
def
getDeliveryValue
(
self
):
def
getDeliveryValue
(
self
):
"""
"""
...
...
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