[Erp5-report] r12215 - /erp5/trunk/products/ERP5/Document/Document.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 22 18:49:05 CET 2007
Author: jp
Date: Mon Jan 22 18:49:04 2007
New Revision: 12215
URL: http://svn.erp5.org?rev=12215&view=rev
Log:
Minor fixes.
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=12215&r1=12214&r2=12215&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py (original)
+++ erp5/trunk/products/ERP5/Document/Document.py Mon Jan 22 18:49:04 2007
@@ -85,11 +85,11 @@
security.declareProtected(Permissions.View, 'updateConversionCache')
def updateConversionCache(self):
aself = aq_base(self)
- if not hasattr(aself, '_cached_time'):
+ if not hasattr(aself, '_cached_time') or self._cached_time is None:
self._cached_time = PersistentMapping()
- if not hasattr(aself, '_cached_data'):
+ if not hasattr(aself, '_cached_data') or self._cached_data is None:
self._cached_data = PersistentMapping()
- if not hasattr(aself, '_cached_mime'):
+ if not hasattr(aself, '_cached_mime') or self._cached_mime is None:
self._cached_mime = PersistentMapping()
security.declareProtected(Permissions.View, 'hasConversion')
More information about the Erp5-report
mailing list