Commit c0c6e1c1 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

bt5_prototype: Use is_package while installing erp5_mysql_innodb

parent e578135e
...@@ -2338,12 +2338,15 @@ class ERP5Generator(PortalGenerator): ...@@ -2338,12 +2338,15 @@ 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', p.erp5_catalog_storage, 'erp5_jquery', for bt in ('erp5_property_sheets', 'erp5_core','erp5_business_package',
'erp5_xhtml_style'): p.erp5_catalog_storage, 'erp5_jquery', 'erp5_xhtml_style'):
if not bt: if not bt:
continue continue
is_package = False
if bt == 'erp5_mysql_innodb_catalog':
is_package = True
url = getBootstrapBusinessTemplateUrl(bt) url = getBootstrapBusinessTemplateUrl(bt)
bt = template_tool.download(url) bt = template_tool.download(url, is_package=is_package)
bt.install(**kw) bt.install(**kw)
def setupERP5Promise(self,p,**kw): def setupERP5Promise(self,p,**kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment