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
Carlos Ramos Carreño
erp5
Commits
a10d9f2e
Commit
a10d9f2e
authored
Jan 05, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_prototype: Update install for BusinessPackage class
parent
a68a1242
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
product/ERP5/Document/BusinessPackage.py
product/ERP5/Document/BusinessPackage.py
+6
-4
No files found.
product/ERP5/Document/BusinessPackage.py
View file @
a10d9f2e
...
...
@@ -30,6 +30,7 @@
import
fnmatch
,
re
import
transaction
from
copy
import
deepcopy
from
collections
import
defaultdict
from
Acquisition
import
Implicit
,
aq_base
,
aq_inner
,
aq_parent
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
...
...
@@ -82,7 +83,7 @@ class BusinessPackage(XMLObject):
)
def
_install
(
self
):
pass
self
.
_path_item
.
install
(
self
)
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'install'
)
install
=
_install
...
...
@@ -93,8 +94,7 @@ class BusinessPackage(XMLObject):
Should also export the objects from PathTemplateItem to their xml format
"""
self
.
storePathData
()
for
item
in
self
.
_path_item
:
item
.
export
()
self
.
_path_item
.
build
(
self
)
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'storePathData'
)
def
storePathData
(
self
):
...
...
@@ -178,7 +178,9 @@ class PathTemplatePackageItem(ObjectTemplateItem):
obj
.
wl_clearLocks
()
def
install
(
self
,
context
,
*
args
,
**
kw
):
super
(
PathTemplateItem
,
self
).
install
(
context
,
*
args
,
**
kw
)
kw
[
'object_to_update'
]
=
{}
kw
[
'force'
]
=
1
super
(
PathTemplatePackageItem
,
self
).
install
(
context
,
trashbin
=
None
,
*
args
,
**
kw
)
# Regenerate local roles for all paths in this business template
p
=
context
.
getPortalObject
()
...
...
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