Commit fc1d6421 authored by Christophe Dumez's avatar Christophe Dumez

- do not crash anymore if user doesn't have erp5 subversion


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6661 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0da16656
......@@ -834,10 +834,13 @@ class ERP5Generator(PortalGenerator):
addTool('ERP5 Delivery Tool', None)
if not p.hasObject('portal_orders'):
addTool('ERP5 Order Tool', None)
addTool = p.manage_addProduct['ERP5Subversion'].manage_addTool
if not p.hasObject('portal_subversion'):
addTool('ERP5 Subversion Tool', None)
try:
addTool = p.manage_addProduct['ERP5Subversion'].manage_addTool
if not p.hasObject('portal_subversion'):
addTool('ERP5 Subversion Tool', None)
except AttributeError:
pass
# Add ERP5Type Tools
addTool = p.manage_addProduct['ERP5Type'].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