[Erp5-report] r23679 - /erp5/trunk/products/ERP5Type/Core/CacheFactory.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 17 18:36:48 CEST 2008
Author: fabien
Date: Wed Sep 17 18:36:42 2008
New Revision: 23679
URL: http://svn.erp5.org?rev=23679&view=rev
Log:
use accessor instead of getting attribute (thanks to Jerome !)
Modified:
erp5/trunk/products/ERP5Type/Core/CacheFactory.py
Modified: erp5/trunk/products/ERP5Type/Core/CacheFactory.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Core/CacheFactory.py?rev=23679&r1=23678&r2=23679&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Core/CacheFactory.py (original)
+++ erp5/trunk/products/ERP5Type/Core/CacheFactory.py Wed Sep 17 18:36:42 2008
@@ -67,7 +67,7 @@
""" 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(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
security.declareProtected(Permissions.AccessContentsInformation, 'getRamCacheFactory')
More information about the Erp5-report
mailing list