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
Hugo Ricateau
erp5
Commits
cede04bb
Commit
cede04bb
authored
Dec 28, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Site: Donot bootstrap Business Manager
parent
835b54f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+2
-18
No files found.
product/ERP5/ERP5Site.py
View file @
cede04bb
...
@@ -2228,10 +2228,7 @@ class ERP5Generator(PortalGenerator):
...
@@ -2228,10 +2228,7 @@ class ERP5Generator(PortalGenerator):
"""
"""
workflow_list
=
[
'business_template_building_workflow'
,
workflow_list
=
[
'business_template_building_workflow'
,
'business_template_installation_workflow'
]
'business_template_installation_workflow'
]
manager_workflow_list
=
[
'business_manager_building_workflow'
,
'business_manager_installation_workflow'
]
tool
=
p
.
portal_workflow
tool
=
p
.
portal_workflow
tool
.
manage_delObjects
(
filter
(
tool
.
hasObject
,
manager_workflow_list
))
tool
.
manage_delObjects
(
filter
(
tool
.
hasObject
,
workflow_list
))
tool
.
manage_delObjects
(
filter
(
tool
.
hasObject
,
workflow_list
))
self
.
bootstrap
(
tool
,
'erp5_core'
,
'WorkflowTemplateItem'
,
workflow_list
)
self
.
bootstrap
(
tool
,
'erp5_core'
,
'WorkflowTemplateItem'
,
workflow_list
)
tool
.
setChainForPortalTypes
((
'Business Template'
,),
workflow_list
)
tool
.
setChainForPortalTypes
((
'Business Template'
,),
workflow_list
)
...
@@ -2239,7 +2236,6 @@ class ERP5Generator(PortalGenerator):
...
@@ -2239,7 +2236,6 @@ class ERP5Generator(PortalGenerator):
'business_manager_building_workflow'
,
'business_manager_building_workflow'
,
'business_manager_installation_workflow'
,
'business_manager_installation_workflow'
,
))
))
tool
.
setChainForPortalTypes
((
'Business Manager'
,),
manager_workflow_list
)
def
setupIndex
(
self
,
p
,
**
kw
):
def
setupIndex
(
self
,
p
,
**
kw
):
# Make sure all tools and folders have been indexed
# Make sure all tools and folders have been indexed
...
@@ -2394,25 +2390,13 @@ class ERP5Generator(PortalGenerator):
...
@@ -2394,25 +2390,13 @@ class ERP5Generator(PortalGenerator):
template_tool
=
p
.
portal_templates
template_tool
=
p
.
portal_templates
if
template_tool
.
getInstalledBusinessTemplate
(
'erp5_core'
)
is
None
:
if
template_tool
.
getInstalledBusinessTemplate
(
'erp5_core'
)
is
None
:
for
bt
in
(
'erp5_property_sheets'
,
'erp5_core'
,
'erp5_business_package'
,
for
bt
in
(
'erp5_property_sheets'
,
'erp5_core'
,
'erp5_business_package'
,
):
p
.
erp5_catalog_storage
,
'erp5_jquery'
,
'erp5_xhtml_style'
,
):
if
not
bt
:
if
not
bt
:
continue
continue
url
=
getBootstrapBusinessTemplateUrl
(
bt
)
url
=
getBootstrapBusinessTemplateUrl
(
bt
)
bt
=
template_tool
.
download
(
url
)
bt
=
template_tool
.
download
(
url
)
if
bt
.
getPortalType
()
==
'Business Manager'
:
template_tool
.
updateInstallationState
([
bt
])
else
:
bt
.
install
(
**
kw
)
bt
.
install
(
**
kw
)
bt_list
=
[]
for
bt
in
(
p
.
erp5_catalog_storage
,
'erp5_jquery'
,
'erp5_xhtml_style'
,):
url
=
getBootstrapBusinessTemplateUrl
(
bt
)
bt
=
template_tool
.
download
(
url
)
bt_list
.
append
(
bt
)
template_tool
.
updateInstallationState
(
bt_list
)
def
setupERP5Promise
(
self
,
p
,
**
kw
):
def
setupERP5Promise
(
self
,
p
,
**
kw
):
"""
"""
Install the ERP5 promise configurator
Install the ERP5 promise configurator
...
...
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