Commit 4cd1d114 authored by Jérome Perrin's avatar Jérome Perrin

call portal_catalog.addDefaultSQLMethods() untill catalog method support is...

call portal_catalog.addDefaultSQLMethods() untill catalog method support is fully integrated in business template

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6358 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c07213ca
......@@ -864,10 +864,12 @@ class ERP5Generator(PortalGenerator):
portal_catalog = getToolByName(p, 'portal_catalog')
if not portal_catalog.getSQLCatalog('erp5_mysql') and not update:
# Add a default SQL Catalog
addSQLCatalog = portal_catalog.manage_addProduct['ZSQLCatalog']\
.manage_addSQLCatalog
addSQLCatalog('erp5_mysql', '')
portal_catalog.default_sql_catalog_id = 'erp5_mysql'
#addSQLCatalog = portal_catalog.manage_addProduct['ZSQLCatalog']\
# .manage_addSQLCatalog
#addSQLCatalog('erp5_mysql', '')
#portal_catalog.default_sql_catalog_id = 'erp5_mysql'
portal_catalog.addDefaultSQLMethods()
portal_catalog.manage_catalogClear()
# Add ERP5Form Tools
addTool = p.manage_addProduct['ERP5Form'].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