[Erp5-report] r43421 jm - /erp5/trunk/products/ERP5Type/CachePlugins/BaseCache.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 17 14:58:55 CET 2011
Author: jm
Date: Thu Feb 17 14:58:55 2011
New Revision: 43421
URL: http://svn.erp5.org?rev=43421&view=rev
Log:
CacheEntry.isExpired: fix expiration condition
Maybe this is enough to fix testCacheTool.test_06_CheckCacheExpiration
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=43421&r1=43420&r2=43421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/BaseCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/BaseCache.py [utf8] Thu Feb 17 14:58:55 2011
@@ -59,7 +59,7 @@ class CacheEntry(object):
- None means allways expire
- 0 means never expire
"""
- return self.expires_at is None or self.expires_at != 0 and self.expires_at < time()
+ return self.expires_at is None or 0 < self.expires_at <= time()
def getValue(self):
""" return cached value """
More information about the Erp5-report
mailing list