Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
CMFCore.interfaces._tools.ICachingPolicyManager Class Reference
Inheritance diagram for CMFCore.interfaces._tools.ICachingPolicyManager:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.interfaces._tools.ICachingPolicyManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getHTTPCachingHeaders

Static Public Attributes

tuple id

Detailed Description

Compute HTTP cache headers for skin methods.

Definition at line 311 of file _tools.py.


Member Function Documentation

def CMFCore.interfaces._tools.ICachingPolicyManager.getHTTPCachingHeaders (   content,
  view_method,
  keywords,
  time = None 
)
Update HTTP caching headers in REQUEST

o 'content' is the content object being published.

o 'view_method' is the name of the view being published

o 'keywords' is a set of extra keywords modifying the view.

o If 'time' is supplied, use it instead of the current time
  (for reliable testing).

Definition at line 326 of file _tools.py.

00326 
00327     def getHTTPCachingHeaders(content, view_method, keywords, time=None):
00328         """ Update HTTP caching headers in REQUEST
00329 
00330         o 'content' is the content object being published.
00331 
00332         o 'view_method' is the name of the view being published
00333 
00334         o 'keywords' is a set of extra keywords modifying the view.
00335 
00336         o If 'time' is supplied, use it instead of the current time
00337           (for reliable testing).
00338         """
00339 
00340 
00341 #
00342 #   Catalog tool interfaces
#

Member Data Documentation

Initial value:
Attribute('id',
            """ The ID of the tool.o BBB:  for use in 'getToolByName';  in the future, prefer        'zapi.getUtility(ICachingPolicyManager)'.o Must be set to 'caching_policy_manager'.""",
            )
Compute HTTP cache headers for skin methods.

Definition at line 316 of file _tools.py.


The documentation for this class was generated from the following file: