Commit 447441d3 authored by Jérome Perrin's avatar Jérome Perrin

"CMF Report Tool" is now an optionnal tool


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25332 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 42b05aa8
...@@ -1257,8 +1257,11 @@ class ERP5Generator(PortalGenerator): ...@@ -1257,8 +1257,11 @@ class ERP5Generator(PortalGenerator):
# Add CMF Report Tool # Add CMF Report Tool
if not p.hasObject('portal_report'): if not p.hasObject('portal_report'):
addTool = p.manage_addProduct['CMFReportTool'].manage_addTool try:
addTool('CMF Report Tool', None) addTool = p.manage_addProduct['CMFReportTool'].manage_addTool
addTool('CMF Report Tool', None)
except AttributeError:
pass
# Add ERP5 Tools # Add ERP5 Tools
addTool = p.manage_addProduct['ERP5'].manage_addTool addTool = p.manage_addProduct['ERP5'].manage_addTool
......
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