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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Nov 3 16:31:26 CET 2006


Author: seb
Date: Fri Nov  3 16:31:24 2006
New Revision: 11087

URL: http://svn.erp5.org?rev=11087&view=rev
Log:
put the updateCache in a better place

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=11087&r1=11086&r2=11087&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ERP5Site.py (original)
+++ erp5/trunk/products/ERP5/ERP5Site.py Fri Nov  3 16:31:24 2006
@@ -925,7 +925,6 @@
     p._setProperty('management_page_charset', 'UTF-8', 'string')
     self.setup(p, create_userfolder, create_activities=create_activities,
         reindex=reindex, **kw)
-    p.portal_caches.updateCache()
     return p
 
   def setupLastTools(self, p, **kw):
@@ -1323,6 +1322,9 @@
     if not update:
       self.setupERP5Core(p,**kw)
 
+    # Make sure the cache is initialized
+    p.portal_caches.updateCache()
+
     self.setupLastTools(p, **kw)
 
     # Make sure tools are cleanly indexed with a uid before creating children




More information about the Erp5-report mailing list