[Erp5-report] r28483 - /erp5/trunk/products/ERP5Type/interfaces/cache_plugin.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 20 11:44:54 CEST 2009


Author: nicolas
Date: Thu Aug 20 11:44:53 2009
New Revision: 28483

URL: http://svn.erp5.org?rev=28483&view=rev
Log:
Improve docstring

Modified:
    erp5/trunk/products/ERP5Type/interfaces/cache_plugin.py

Modified: erp5/trunk/products/ERP5Type/interfaces/cache_plugin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/interfaces/cache_plugin.py?rev=28483&r1=28482&r2=28483&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/interfaces/cache_plugin.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/interfaces/cache_plugin.py [utf8] Thu Aug 20 11:44:53 2009
@@ -57,7 +57,7 @@
   def get(cache_id, scope, default=None):
     """get the calculated value according to the cache_id and scope.
     raise KeyError if key does not exists and no default value provided.
-    return CacheEntry
+    return CacheEntry or default
     """
 
   def set(cache_id, scope, value, cache_duration=None, calculation_time=0):




More information about the Erp5-report mailing list