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
alecs_myu
erp5
Commits
9b504132
Commit
9b504132
authored
Mar 20, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install erp5_promise bt5 during bootstrap if requested
parent
dad87c34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+14
-0
No files found.
product/ERP5/ERP5Site.py
View file @
9b504132
...
...
@@ -2105,6 +2105,7 @@ class ERP5Generator(PortalGenerator):
if
not
update
:
self
.
setupWorkflow
(
p
)
self
.
setupERP5Core
(
p
,
**
kw
)
self
.
setupERP5Promise
(
p
,
**
kw
)
# Make sure the cache is initialized
p
.
portal_caches
.
updateCache
()
...
...
@@ -2129,3 +2130,16 @@ class ERP5Generator(PortalGenerator):
url
=
getBootstrapBusinessTemplateUrl
(
bt
)
bt
=
template_tool
.
download
(
url
)
bt
.
install
(
**
kw
)
def
setupERP5Promise
(
self
,
p
,
**
kw
):
"""
Install the ERP5 promise configurator
"""
template_tool
=
p
.
portal_templates
# Configure the bt5 repository
repository
=
p
.
getPromiseParameter
(
'portal_templates'
,
'repository'
)
if
repository
is
not
None
:
template_tool
.
updateRepositoryBusinessTemplateList
(
repository
.
split
(
'
\
n
'
))
template_tool
.
installBusinessTemplateListFromRepository
(
[
'erp5_promise'
],
activate
=
True
,
install_dependency
=
True
)
p
.
portal_alarms
.
subscribe
()
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