Package CMFCore :: Module CachingPolicyManager
[show private | hide private]
[frames | no frames]

Module CMFCore.CachingPolicyManager

Caching tool implementation.

$Id: CachingPolicyManager.py 21452 2005-05-06 18:20:01Z fguillaume $
Classes
CachingPolicy Represent a single class of cachable objects: - class membership is defined by 'predicate', a TALES expression with access to the following top-level names: 'object' -- the object itself 'view' -- the name of the view method 'keywords' -- keywords passed to the request 'request' -- the REQUEST object itself 'member' -- the authenticated member, or None if anonymous 'modules' -- usual TALES access-with-import 'nothing' -- None 'time' -- A DateTime object for the current date and time - The "Last-modified" HTTP response header will be set using 'mtime_func', which is another TALES expression evaluated against the same namespace.
CachingPolicyManager Manage the set of CachingPolicy objects for the site; dispatch to them from skin methods.

Function Summary
  createCPContext(content, view_method, keywords, time)
Construct an expression context for TALES expressions, for use by CachingPolicy objects.
  manage_addCachingPolicyManager(self, REQUEST)
Add a CPM to self.

Function Details

createCPContext(content, view_method, keywords, time=None)

Construct an expression context for TALES expressions, for use by CachingPolicy objects.

manage_addCachingPolicyManager(self, REQUEST=None)

Add a CPM to self.

Generated by Epydoc 2.1 on Mon Jun 27 12:48:01 2005 http://epydoc.sf.net