[Erp5-report] r29596 - /erp5/trunk/products/ERP5Type/Tool/CacheTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 13 14:44:16 CEST 2009


Author: nicolas
Date: Tue Oct 13 14:44:14 2009
New Revision: 29596

URL: http://svn.erp5.org?rev=29596&view=rev
Log:
remove useless if statement

Modified:
    erp5/trunk/products/ERP5Type/Tool/CacheTool.py

Modified: erp5/trunk/products/ERP5Type/Tool/CacheTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Tool/CacheTool.py?rev=29596&r1=29595&r2=29596&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Tool/CacheTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Tool/CacheTool.py [utf8] Tue Oct 13 14:44:14 2009
@@ -118,11 +118,10 @@
     CachingMethod.factories = {}
     ## read configuration from ZODB
     for key, item in self.getCacheFactoryList().items():
-      if len(item['cache_plugins']):
-        ## init cache backend storages
-        for cp in item["cache_plugins"]:
-          cp.initCacheStorage()
-        CachingMethod.factories[key] = CacheFactory(item['cache_plugins'], item['cache_params'])    
+      ## init cache backend storages
+      for cp in item["cache_plugins"]:
+        cp.initCacheStorage()
+      CachingMethod.factories[key] = CacheFactory(item['cache_plugins'], item['cache_params'])    
     if REQUEST is not None:
       self.REQUEST.RESPONSE.redirect('cache_tool_configure?manage_tabs_message=Cache updated.')
 




More information about the Erp5-report mailing list