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
a18321f1
Commit
a18321f1
authored
Oct 14, 2022
by
Kazuhiko Shiozaki
Committed by
Jérome Perrin
May 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2/py3: change fromlist for __import__() in Python 3.
parent
bd579e99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5Type/patches/DA.py
product/ERP5Type/patches/DA.py
+2
-1
No files found.
product/ERP5Type/patches/DA.py
View file @
a18321f1
...
@@ -30,6 +30,7 @@ from Acquisition import aq_base, aq_parent
...
@@ -30,6 +30,7 @@ from Acquisition import aq_base, aq_parent
from
zLOG
import
LOG
,
INFO
,
ERROR
from
zLOG
import
LOG
,
INFO
,
ERROR
from
io
import
BytesIO
from
io
import
BytesIO
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type
import
Permissions
import
six
security
=
ClassSecurityInfo
()
security
=
ClassSecurityInfo
()
DA
.
security
=
security
DA
.
security
=
security
...
@@ -279,7 +280,7 @@ def getObjectMeta(original_function):
...
@@ -279,7 +280,7 @@ def getObjectMeta(original_function):
# imported, which is enough to use a ZODB Extension as a brain.
# imported, which is enough to use a ZODB Extension as a brain.
try
:
try
:
m
=
__import__
(
'erp5.component.extension.%s'
%
module
,
globals
(),
m
=
__import__
(
'erp5.component.extension.%s'
%
module
,
globals
(),
{},
'erp5.component.extension'
)
{},
[
'erp5.component.extension'
]
if
six
.
PY2
else
[
'erp5'
]
)
o
=
getattr
(
m
,
name
,
None
)
o
=
getattr
(
m
,
name
,
None
)
if
o
is
None
:
if
o
is
None
:
...
...
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