RamCachePlugin.py 1.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
from AccessControl import ClassSecurityInfo
from Products.CMFCore import CMFCorePermissions
from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type import PropertySheet
from Products.ERP5.PropertySheet.SortIndex import SortIndex
from Products.ERP5Cache.PropertySheet.BaseCachePlugin import BaseCachePlugin

class RamCachePlugin(XMLObject):
  """
  RamCachePlugin is a Zope (persistent) representation of 
  the RAM based real cache plugin object.
  """
  meta_type = 'ERP5 Ram Cache Plugin'
  portal_type = 'Ram Cache Plugin'
  isPortalContent = 1
  isRADContent = 1
  allowed_types = ()
    
  security = ClassSecurityInfo()
  security.declareProtected(CMFCorePermissions.ManagePortal,
                            'manage_editProperties',
                            'manage_changeProperties',
                            'manage_propertiesForm',
                            )

  property_sheets = ( PropertySheet.Base
                    , PropertySheet.SimpleItem
                    , PropertySheet.Folder
                    , SortIndex
                    , BaseCachePlugin 
                    )