"""Header set folder implementation $Id: $ """ __authors__ = 'Geoff Davis ' __docformat__ = 'restructuredtext' from AccessControl import ClassSecurityInfo from Products.CMFCore import permissions from Products.Archetypes.atapi import OrderedBaseFolder from Products.Archetypes.atapi import registerType from Products.CacheSetup.interfaces import ICacheToolFolder from Products.CacheSetup.config import PROJECT_NAME from nocatalog import NoCatalog class HeaderSetFolder(NoCatalog, OrderedBaseFolder): """A container for header set objects""" __implements__ = (OrderedBaseFolder.__implements__, ICacheToolFolder) security = ClassSecurityInfo() archetype_name = 'Header Set Folder' portal_type = meta_type = 'HeaderSetFolder' global_allow = 0 allowed_content_types = ('HeaderSet',) actions = ( {'action': 'string:$object_url', 'category': 'object', 'id': 'view', 'name': 'Cache Setup', 'permissions': (permissions.ManagePortal,), 'visible': False}, ) aliases = { '(Default)': 'cache_policy_item_config', 'view' : 'cache_policy_item_config', 'edit' : 'cache_policy_item_config' } registerType(HeaderSetFolder, PROJECT_NAME)