From be9c3562c6cc4a961f19b77356be32c66f5b97c9 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Mon, 18 May 2009 15:35:59 +0000 Subject: [PATCH] remove blank spaces git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27031 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Core/CacheFactory.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/product/ERP5Type/Core/CacheFactory.py b/product/ERP5Type/Core/CacheFactory.py index e4da7bbf76..5037f0507e 100644 --- a/product/ERP5Type/Core/CacheFactory.py +++ b/product/ERP5Type/Core/CacheFactory.py @@ -39,18 +39,18 @@ class CacheFactory(XMLObject): """ CacheFactory is a collection of cache plugins. CacheFactory is an object which lives in ZODB. """ - + meta_type = 'ERP5 Cache Factory' portal_type = 'Cache Factory' isPortalContent = 1 isRADContent = 1 - + allowed_types = ('ERP5 Ram Cache', 'ERP5 Distributed Ram Cache', 'ERP5 SQL Cache', 'ERP5 Zodb Cache', ) - + security = ClassSecurityInfo() security.declareProtected(Permissions.ManagePortal, 'manage_editProperties', @@ -63,26 +63,26 @@ class CacheFactory(XMLObject): , PropertySheet.Folder , CacheFactory ) - - + + def getCachePluginList(self): """ get ordered list of installed cache plugins in ZODB """ cache_plugins = self.objectValues(self.allowed_types) cache_plugins = map(None, cache_plugins) cache_plugins.sort(key=lambda x: x.getIntIndex(0)) return cache_plugins - + security.declareProtected(Permissions.AccessContentsInformation, 'getRamCacheFactory') def getRamCacheFactory(self): """ Return RAM based cache factory """ erp5_site_id = self.getPortalObject().getId() return CachingMethod.factories[erp5_site_id][self.cache_scope] - + security.declareProtected(Permissions.AccessContentsInformation, 'getRamCacheFactoryPluginList') def getRamCacheFactoryPluginList(self): """ Return RAM based list of cache plugins for this factory """ return self.getRamCacheFactory().getCachePluginList() - + def clearCache(self): """ clear cache for this cache factory """ for cp in self.getRamCacheFactory().getCachePluginList(): -- 2.30.9