[Erp5-report] r24465 - /erp5/trunk/products/ERP5/ERP5Site.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Nov 3 18:24:57 CET 2008


Author: seb
Date: Mon Nov  3 18:24:54 2008
New Revision: 24465

URL: http://svn.erp5.org?rev=24465&view=rev
Log:
- 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.

Modified:
    erp5/trunk/products/ERP5/ERP5Site.py

Modified: erp5/trunk/products/ERP5/ERP5Site.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/ERP5Site.py?rev=24465&r1=24464&r2=24465&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ERP5Site.py [utf8] (original)
+++ erp5/trunk/products/ERP5/ERP5Site.py [utf8] Mon Nov  3 18:24:54 2008
@@ -1499,6 +1499,10 @@
     if p.erp5_sql_connection_type is not None:
       setattr(p, 'isIndexable', 1)
       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()
       skins_tool["erp5_core"].ERP5Site_reindexAll()
 




More information about the Erp5-report mailing list