[Erp5-report] r42898 nicolas.dumazet - /erp5/trunk/products/ERP5Type/Cache.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 1 16:52:24 CET 2011


Author: nicolas.dumazet
Date: Tue Feb  1 16:52:24 2011
New Revision: 42898

URL: http://svn.erp5.org?rev=42898&view=rev
Log:
complain even less when initializing caches if some properties are missing.
Just forget about it, and retry later.

Modified:
    erp5/trunk/products/ERP5Type/Cache.py

Modified: erp5/trunk/products/ERP5Type/Cache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Cache.py?rev=42898&r1=42897&r2=42898&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Cache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Cache.py [utf8] Tue Feb  1 16:52:24 2011
@@ -57,7 +57,11 @@ def initializePortalCachingProperties(se
     # we set is_cache_initialized right now to prevent infinite loops
     is_cache_initialized = 1
     ## update cache structure from portal_caches
-    portal_caches.updateCache()
+    try:
+      portal_caches.updateCache()
+    except AttributeError:
+      is_cache_initialized = 0
+      return
     # we mark the cache as ready after initialization, because initialization
     # itself will cause cache misses that we want to ignore
     is_cache_ready = 1



More information about the Erp5-report mailing list