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

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Jun 12 18:48:38 CEST 2010


Author: jm
Date: Sat Jun 12 18:48:36 2010
New Revision: 36286

URL: http://svn.erp5.org?rev=36286&view=rev
Log:
Drop existing 'portal_ids' table when creating a new site

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=36286&r1=36285&r2=36286&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ERP5Site.py [utf8] (original)
+++ erp5/trunk/products/ERP5/ERP5Site.py [utf8] Sat Jun 12 18:48:36 2010
@@ -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.




More information about the Erp5-report mailing list