Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
05e310d5
Commit
05e310d5
authored
Sep 13, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Update type_provider_list during BM installation
parent
88a5c7ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+11
-1
No files found.
product/ERP5/Document/BusinessManager.py
View file @
05e310d5
...
...
@@ -765,7 +765,6 @@ class BusinessItem(XMLObject):
path
=
self
.
getProperty
(
'item_path'
)
path_list
=
path
.
split
(
'/'
)
container_path
=
path_list
[:
-
1
]
object_id
=
path_list
[
-
1
]
try
:
container
=
self
.
unrestrictedResolveValue
(
portal
,
container_path
)
...
...
@@ -782,6 +781,17 @@ class BusinessItem(XMLObject):
# install object
obj
=
self
.
objectValues
()[
0
]
obj
=
obj
.
_getCopy
(
container
)
# Update the type_provider_list if needed
# XXX: Find a way to fiter and do this check only for tool, so that we
# don't lose on perfomance in checking this everytime
if
interfaces
.
ITypeProvider
.
providedBy
(
obj
):
type_container_id
=
obj
.
id
types_tool
=
portal
.
portal_types
if
type_container_id
not
in
types_tool
.
type_provider_list
:
types_tool
.
type_provider_list
=
tuple
(
types_tool
.
type_provider_list
)
+
\
(
type_container_id
,)
# Before making `obj` a sub-object of `container`, we should the acquired
# roles on obj
obj
.
isIndexable
=
ConstantGetter
(
'isIndexable'
,
value
=
False
)
...
...
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