Commit a392e00c authored by Sebastien Robin's avatar Sebastien Robin

- drop the table portal_ids when we create a new ERP5 Site, this

  should fix the current problem of testAlarm which fails if
  there is already some data in portal ids.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24465 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f30a808a
...@@ -1499,6 +1499,10 @@ class ERP5Generator(PortalGenerator): ...@@ -1499,6 +1499,10 @@ class ERP5Generator(PortalGenerator):
if p.erp5_sql_connection_type is not None: if p.erp5_sql_connection_type is not None:
setattr(p, 'isIndexable', 1) setattr(p, 'isIndexable', 1)
portal_catalog = p.portal_catalog portal_catalog = p.portal_catalog
# Clear portal ids sql table, like this we do not take
# ids for a previously created web site
portal_catalog.getSQLCatalog().z0_drop_portal_ids()
# Then clear the catalog and reindex it
portal_catalog.manage_catalogClear() portal_catalog.manage_catalogClear()
skins_tool["erp5_core"].ERP5Site_reindexAll() skins_tool["erp5_core"].ERP5Site_reindexAll()
......
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