[CMF-checkins] CVS: CMF/CMFCore - FSDTMLMethod.py:1.20

Chris McDonough cvs-admin at zope.org
Sat Nov 1 21:17:39 EST 2003


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv6529

Modified Files:
	FSDTMLMethod.py 
Log Message:
Allow FSDTMLMethods to play in the cache policy manager scheme.


=== CMF/CMFCore/FSDTMLMethod.py 1.19 => 1.20 ===
--- CMF/CMFCore/FSDTMLMethod.py:1.19	Thu Sep 25 06:29:59 2003
+++ CMF/CMFCore/FSDTMLMethod.py	Sat Nov  1 21:17:38 2003
@@ -22,7 +22,7 @@
 from AccessControl.Role import RoleManager
 from OFS.Cache import Cacheable
 
-from utils import _dtmldir
+from utils import _dtmldir, _setCacheHeaders
 from CMFCorePermissions import FTPAccess
 from CMFCorePermissions import View
 from CMFCorePermissions import ViewManagementScreens
@@ -146,6 +146,9 @@
             else:
                 c, e=guess_content_type(self.getId(), r)
             RESPONSE.setHeader('Content-Type', c)
+        if RESPONSE is not None:
+            # caching policy manager hook
+            _setCacheHeaders(self, {})
         result = decapitate(r, RESPONSE)
         if not self._cache_namespace_keys:
             self.ZCacheable_set(result)




More information about the CMF-checkins mailing list