Commit 896ce77a authored by Fabien Morin's avatar Fabien Morin

use accessor instead of getting attribute (thanks to Jerome !)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23679 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 085e56ef
...@@ -67,7 +67,7 @@ class CacheFactory(XMLObject): ...@@ -67,7 +67,7 @@ class CacheFactory(XMLObject):
""" get ordered list of installed cache plugins in ZODB """ """ get ordered list of installed cache plugins in ZODB """
cache_plugins = self.objectValues(self.allowed_types) cache_plugins = self.objectValues(self.allowed_types)
cache_plugins = map(None, cache_plugins) cache_plugins = map(None, cache_plugins)
cache_plugins.sort(lambda x,y: cmp(x.int_index, y.int_index)) cache_plugins.sort(lambda x,y: cmp(x.getIntIndex(0), y.getIntIndex(0)))
return cache_plugins return cache_plugins
security.declareProtected(Permissions.AccessContentsInformation, 'getRamCacheFactory') security.declareProtected(Permissions.AccessContentsInformation, 'getRamCacheFactory')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment