Commit a7d6919e authored by Jean-Paul Smets's avatar Jean-Paul Smets

Minor fixes.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12215 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3e30a7a
......@@ -85,11 +85,11 @@ class ConversionCacheMixin:
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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment