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
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
c6267aa5
Commit
c6267aa5
authored
Oct 18, 2022
by
Kazuhiko Shiozaki
Committed by
Jérome Perrin
Mar 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2/py3: use six.get_unbound_function.
parent
455a3000
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 @
c6267aa5
...
@@ -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 @
c6267aa5
...
@@ -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