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
12c1cdee
Commit
12c1cdee
authored
Oct 18, 2022
by
Kazuhiko Shiozaki
Committed by
Jérome Perrin
May 16, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2/py3: use six.get_unbound_function.
parent
57e8f42c
Changes
2
Hide 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 @
12c1cdee
...
...
@@ -35,8 +35,9 @@ from Products.ERP5Type.patches.WorkflowTool import \
WorkflowHistoryList
as
LegacyWorkflowHistoryList
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
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
):
if
len
(
self
.
_log
)
<
16
:
...
...
bt5/erp5_dummy_movement/DocumentTemplateItem/portal_components/document.erp5.DummyMovement.py
View file @
12c1cdee
...
...
@@ -31,7 +31,7 @@
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
erp5.component.document.Movement
import
Movement
from
six
import
get_unbound_function
class
DummyMovement
(
Movement
):
"""Dummy Movement for testing purposes."""
...
...
@@ -72,7 +72,7 @@ class DummyMovement(Movement):
parent
=
self
.
getParentValue
()
if
isinstance
(
parent
,
DummyDelivery
):
self
=
parent
return
DummyDelivery
.
getSimulationState
(
self
)
return
get_unbound_function
(
DummyDelivery
.
getSimulationState
)
(
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