[CMF-checkins] CVS: CMF/CMFCore - CachingPolicyManager.py:1.6
Tres Seaver
tseaver@zope.com
Wed, 10 Apr 2002 14:17:57 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv15908/CMFCore
Modified Files:
CachingPolicyManager.py
Log Message:
- Further unscrew time-sensitive tests for CachingPolicyManager.
=== CMF/CMFCore/CachingPolicyManager.py 1.5 => 1.6 ===
#
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 )