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

Tres Seaver tseaver@zope.com
Thu, 21 Mar 2002 07:27:35 -0500


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

Added Files:
	CachingPolicyManager.py 
Log Message:


  - Added CachingPolicyManager tool, which manages caching policies
    for skin methods, and updated FSPageTemplate to use a CPM if
    found.


=== CMF/CMFCore/interfaces/CachingPolicyManager.py 1.1 => 1.2 ===
+#
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
+# 
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE
+# 
+##############################################################################
+
+"""Caching tool interface description.
+
+$Id$
+"""
+
+from Interface import Attribute, Base
+
+class CachingPolicyManager( Base ):
+    """
+        Manage HTTP cache policies for skin methods.
+    """
+    id = Attribute( 'id', 'Must be set to "caching_policy_manager"' )
+
+    def getHTTPCachingHeaders( content, view_method, keywords ):
+        """
+            Update HTTP caching headers in REQUEST based on 'content',
+            'view_method', and 'keywords'.
+        """