Commit b852cd5d authored by Julien Muchembled's avatar Julien Muchembled

Drop existing 'portal_ids' table when creating a new site

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36286 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19038f40
......@@ -1805,7 +1805,7 @@ class ERP5Generator(PortalGenerator):
setattr(p, 'isIndexable', ConstantGetter('isIndexable', value=True))
# Clear portal ids sql table, like this we do not take
# ids for a previously created web site
p.portal_ids.initializeGenerator(all=True)
p.portal_ids.clearGenerator(all=True)
# Then clear the catalog and reindex it
p.portal_catalog.manage_catalogClear()
# Calling ERP5Site_reindexAll is useless.
......
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