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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
bc9023c8
Commit
bc9023c8
authored
Apr 28, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Merge remote-tracking branch 'origin/master' into zope4py2
parent
807dc150
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
product/ERP5Type/patches/ObjectManager.py
product/ERP5Type/patches/ObjectManager.py
+6
-8
No files found.
product/ERP5Type/patches/ObjectManager.py
View file @
bc9023c8
...
@@ -12,15 +12,13 @@
...
@@ -12,15 +12,13 @@
#
#
##############################################################################
##############################################################################
# Import: add rename feature and make _importObjectFromFile return the object
from
Products.ERP5Type.XMLExportImport
import
magic
,
importXML
from
OFS.ObjectManager
import
ObjectManager
customImporters
=
{
magic
:
importXML
}
from
OFS.XMLExportImport
import
importXML
from
OFS.XMLExportImport
import
magic
customImporters
=
{
magic
:
importXML
,
}
import
OFS.ObjectManager
OFS
.
ObjectManager
.
customImporters
=
customImporters
# Import: add rename feature and make _importObjectFromFile return the object
def
ObjectManager_importObjectFromFile
(
self
,
filepath
,
verify
=
1
,
set_owner
=
1
,
id
=
None
,
suppress_events
=
False
):
def
ObjectManager_importObjectFromFile
(
self
,
filepath
,
verify
=
1
,
set_owner
=
1
,
id
=
None
,
suppress_events
=
False
):
#LOG('_importObjectFromFile, filepath',0,filepath)
#LOG('_importObjectFromFile, filepath',0,filepath)
# locate a valid connection
# locate a valid connection
...
@@ -46,4 +44,4 @@ def ObjectManager_importObjectFromFile(self, filepath, verify=1, set_owner=1, id
...
@@ -46,4 +44,4 @@ def ObjectManager_importObjectFromFile(self, filepath, verify=1, set_owner=1, id
ob
.
manage_changeOwnershipType
(
explicit
=
0
)
ob
.
manage_changeOwnershipType
(
explicit
=
0
)
return
ob
return
ob
ObjectManager
.
_importObjectFromFile
=
ObjectManager_importObjectFromFile
O
FS
.
ObjectManager
.
O
bjectManager
.
_importObjectFromFile
=
ObjectManager_importObjectFromFile
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