[CMF-checkins] CVS: CMF/CMFCore - CachingPolicyManager.py:1.3.2.3

Tres Seaver tseaver@zope.com
Wed, 10 Apr 2002 14:16:33 -0400


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

Modified Files:
      Tag: CMF-1_3-branch
	CachingPolicyManager.py 
Log Message:
 - Further unscrew time-sensitive tests for CachingPolicyManager.

=== CMF/CMFCore/CachingPolicyManager.py 1.3.2.2 => 1.3.2.3 ===
     #
     security.declareProtected( View, 'getHTTPCachingHeaders' )
-    def getHTTPCachingHeaders( self, content, view_method, keywords ):
+    def getHTTPCachingHeaders( self, content, view_method, keywords, time=None):
         """
             Return a list of HTTP caching headers based on 'content',
             'view_method', and 'keywords'.
         """
-        context = createCPContext( content, view_method, keywords )
+        context = createCPContext( content, view_method, keywords, time=time )
         for policy_id, policy in self.listPolicies():
 
             headers = policy.getHeaders( context )