Commit 94496c5d authored by Sebastien Robin's avatar Sebastien Robin

make sure that erp5_html_style business template will be installed


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5936 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 22549246
...@@ -1114,9 +1114,10 @@ class ERP5Generator(PortalGenerator): ...@@ -1114,9 +1114,10 @@ class ERP5Generator(PortalGenerator):
return return
if template_tool.getInstalledBusinessTemplate('erp5_core') is None: if template_tool.getInstalledBusinessTemplate('erp5_core') is None:
bootstrap_dir = self.getBootstrapDirectory() bootstrap_dir = self.getBootstrapDirectory()
template = os.path.join(bootstrap_dir, 'erp5_core') for bt in ('erp5_core','erp5_html_style'):
template = os.path.join(bootstrap_dir, bt)
if not os.path.exists(template): if not os.path.exists(template):
template = os.path.join(bootstrap_dir, 'erp5_core.bt5') template = os.path.join(bootstrap_dir, '%s.bt5' % bt)
id = template_tool.generateNewId() id = template_tool.generateNewId()
template_tool.download(template, id=id) template_tool.download(template, id=id)
......
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