Commit e2b02f87 authored by Sebastien Robin's avatar Sebastien Robin

it is required to clear at the beginning the catalog, or we can not generate a...

it is required to clear at the beginning the catalog, or we can not generate a new uid required to create a new business template


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6081 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f18a0680
......@@ -872,6 +872,9 @@ class ERP5Generator(PortalGenerator):
# FIXME: addDefaultSQLMethods should be removed.
portal_catalog.addDefaultSQLMethods('erp5_mysql')
# Clear Catalog
portal_catalog.manage_catalogClear()
# Add ERP5Form Tools
addTool = p.manage_addProduct['ERP5Form'].manage_addTool
if not p.hasObject('portal_selections'):
......@@ -968,7 +971,6 @@ class ERP5Generator(PortalGenerator):
if skins_tool is None:
return
portal_catalog = p.portal_catalog
portal_catalog.manage_catalogClear()
skins_tool["erp5_core"].ERP5Site_reindexAll()
def setupUserFolder(self, p):
......
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