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,13 +1114,14 @@ class ERP5Generator(PortalGenerator):
return
if template_tool.getInstalledBusinessTemplate('erp5_core') is None:
bootstrap_dir = self.getBootstrapDirectory()
template = os.path.join(bootstrap_dir, 'erp5_core')
if not os.path.exists(template):
template = os.path.join(bootstrap_dir, 'erp5_core.bt5')
id = template_tool.generateNewId()
template_tool.download(template, id=id)
template_tool[id].install(**kw)
for bt in ('erp5_core','erp5_html_style'):
template = os.path.join(bootstrap_dir, bt)
if not os.path.exists(template):
template = os.path.join(bootstrap_dir, '%s.bt5' % bt)
id = template_tool.generateNewId()
template_tool.download(template, id=id)
template_tool[id].install(**kw)
# Patch the standard method
CMFSite.getPhysicalPath = ERP5Site.getPhysicalPath
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