Log message for revision 38509:
- Don't bomb if a caching policy manager is not found
Changed:
U CMF/branches/1.4/CMFCore/utils.py
-=-
Modified: CMF/branches/1.4/CMFCore/utils.py
===================================================================
--- CMF/branches/1.4/CMFCore/utils.py 2005-09-17 16:59:55 UTC (rev 38508)
+++ CMF/branches/1.4/CMFCore/utils.py 2005-09-17 23:31:28 UTC (rev 38509)
@@ -390,10 +390,13 @@
return False
manager = getToolByName(obj, 'caching_policy_manager', None)
+ if manager is None:
+ return False
+
ret = manager.getModTimeAndETag(aq_parent(obj), obj.getId(), extra_context)
if ret is None:
# no appropriate policy or 304s not enabled
- return False
+ return False
(content_mod_time, content_etag) = ret
if content_mod_time:
_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins