[CMF-checkins] CVS: CMF/CMFCore - utils.py:1.37
Tres Seaver
tseaver@zope.com
Fri, 21 Mar 2003 22:29:19 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv5615/CMFCore
Modified Files:
utils.py
Log Message:
- Fix buglet which prevented CPM rules from matching the view name.
=== CMF/CMFCore/utils.py 1.36 => 1.37 ===
--- CMF/CMFCore/utils.py:1.36 Tue Jan 21 12:53:59 2003
+++ CMF/CMFCore/utils.py Fri Mar 21 22:29:16 2003
@@ -259,12 +259,12 @@
"""Set cache headers according to cache policy manager for the obj."""
REQUEST = getattr(obj, 'REQUEST', None)
if REQUEST is not None:
- obj = aq_parent(obj)
+ content = aq_parent(obj)
manager = getToolByName(obj, 'caching_policy_manager', None)
if manager is not None:
view_name = obj.getId()
headers = manager.getHTTPCachingHeaders(
- obj, view_name, extra_context
+ content, view_name, extra_context
)
RESPONSE = REQUEST['RESPONSE']
for key, value in headers: