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
1f014ac2
Commit
1f014ac2
authored
Sep 30, 2022
by
Kazuhiko Shiozaki
Committed by
Jérome Perrin
May 20, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! py2/py3: 2to3 -f methodattrs
parent
6a76114b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_dummy_movement/DocumentTemplateItem/portal_components/document.erp5.DummyMovement.py
...lateItem/portal_components/document.erp5.DummyMovement.py
+1
-1
product/ERP5Type/dynamic/lazy_class.py
product/ERP5Type/dynamic/lazy_class.py
+1
-1
product/ERP5Type/patches/ObjectManager.py
product/ERP5Type/patches/ObjectManager.py
+1
-1
No files found.
bt5/erp5_dummy_movement/DocumentTemplateItem/portal_components/document.erp5.DummyMovement.py
View file @
1f014ac2
...
...
@@ -72,7 +72,7 @@ class DummyMovement(Movement):
parent
=
self
.
getParentValue
()
if
isinstance
(
parent
,
DummyDelivery
):
self
=
parent
return
DummyDelivery
.
getSimulationState
.
__func__
(
self
)
return
DummyDelivery
.
getSimulationState
(
self
)
def
getDeliveryValue
(
self
):
"""
...
...
product/ERP5Type/dynamic/lazy_class.py
View file @
1f014ac2
...
...
@@ -371,7 +371,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
for
key
,
value
in
six
.
iteritems
(
attribute_dict
):
setattr
(
klass
,
key
,
value
)
if
getattr
(
klass
.
__setstate__
,
'
im_func'
,
None
)
is
\
if
getattr
(
klass
.
__setstate__
,
'
__func__'
,
klass
.
__setstate__
)
is
\
persistent_migration
.
__setstate__
:
# optimization to reduce overhead of compatibility code
klass
.
__setstate__
=
persistent_migration
.
Base__setstate__
...
...
product/ERP5Type/patches/ObjectManager.py
View file @
1f014ac2
...
...
@@ -32,7 +32,7 @@ def ObjectManager_importObjectFromFile(self, filepath, verify=1, set_owner=1, id
if
verify
:
self
.
_verifyObjectPaste
(
ob
,
validate_src
=
0
)
if
id
is
None
:
id
=
ob
.
id
if
hasattr
(
id
,
'
im_func
'
):
id
=
id
()
if
hasattr
(
id
,
'
__func__
'
):
id
=
id
()
self
.
_setObject
(
id
,
ob
,
set_owner
=
set_owner
,
suppress_events
=
suppress_events
)
...
...
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