[Erp5-report] r29694 - /erp5/trunk/products/ERP5Type/CachePlugins/BaseCache.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 15 21:53:22 CEST 2009


Author: yo
Date: Thu Oct 15 21:53:22 2009
New Revision: 29694

URL: http://svn.erp5.org?rev=29694&view=rev
Log:
Access self.value without calling getattr, as the attribute value must be always present.

Modified:
    erp5/trunk/products/ERP5Type/CachePlugins/BaseCache.py

Modified: erp5/trunk/products/ERP5Type/CachePlugins/BaseCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/BaseCache.py?rev=29694&r1=29693&r2=29694&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/BaseCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/BaseCache.py [utf8] Thu Oct 15 21:53:22 2009
@@ -69,7 +69,7 @@
 
   def getValue(self):
     """ return cached value """ 
-    return getattr(self, 'value', None)
+    return self.value
 
   def __len__(self):
     """return value size




More information about the Erp5-report mailing list