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

Tres Seaver tseaver@zope.com
Wed, 20 Feb 2002 00:14:03 -0500


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

Added Files:
      Tag: tseaver-caching_tool-branch
	CachingPolicyManager.py 
Log Message:
 - Initial checkin of CachingPolicyManager.

=== Added File CMF/CMFCore/interfaces/CachingPolicyManager.py ===
##############################################################################
#
# 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: CachingPolicyManager.py,v 1.1.2.1 2002/02/20 05:14:02 tseaver Exp $
"""

from Interface import Attribute, Base

class CachingPolicyManager( Base ):
    """
        Manage HTTP cache policies for skin methods.
    """
    id = Attribute( 'id', 'Must be set to "CachingPolicyManager"' )

    def setHTTPCacheHeaders( REQUEST, content, view_method, keywords ):
        """
            Update HTTP caching headers in REQUEST based on 'content',
            'view_method', and 'keywords'.
        """