Commit 5da31179 authored by Vincent Pelletier's avatar Vincent Pelletier

portal_synchronizations is not mandatory in an erp5 site.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11990 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 491b65a7
...@@ -1148,10 +1148,13 @@ class ERP5Generator(PortalGenerator): ...@@ -1148,10 +1148,13 @@ class ERP5Generator(PortalGenerator):
if not p.hasObject('portal_preferences'): if not p.hasObject('portal_preferences'):
addTool('ERP5 Preference Tool', None) addTool('ERP5 Preference Tool', None)
try:
# Add ERP5SyncML Tools # Add ERP5SyncML Tools
addTool = p.manage_addProduct['ERP5SyncML'].manage_addTool addTool = p.manage_addProduct['ERP5SyncML'].manage_addTool
if not p.hasObject('portal_synchronizations'): if not p.hasObject('portal_synchronizations'):
addTool('ERP5 Synchronizations', None) addTool('ERP5 Synchronizations', None)
except AttributeError:
pass
# Add Message Catalog # Add Message Catalog
if not 'Localizer' in p.objectIds(): if not 'Localizer' in p.objectIds():
......
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