[Erp5-report] r29024 - /erp5/trunk/products/ERP5/Document/Document.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Sep 14 11:48:42 CEST 2009


Author: nicolas
Date: Mon Sep 14 11:48:40 2009
New Revision: 29024

URL: http://svn.erp5.org?rev=29024&view=rev
Log:
Empty data does not mean that cache value was not retrieved

Modified:
    erp5/trunk/products/ERP5/Document/Document.py

Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=29024&r1=29023&r2=29024&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Document.py [utf8] Mon Sep 14 11:48:40 2009
@@ -219,8 +219,7 @@
         md5sum, mime, data = data_list
         if md5sum != self.getContentMd5():
           raise KeyError, 'Conversion cache key is compromised for %r' % cache_id
-        if data:
-          return mime, data
+        return mime, data
     raise KeyError, 'Conversion cache key does not exists for %r' % cache_id
 
   security.declareProtected(Permissions.View, 'getConversionSize')




More information about the Erp5-report mailing list