[Erp5-report] r37182 vincent - /erp5/trunk/products/ZSQLCatalog/SQLCatalog.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jul 19 11:30:50 CEST 2010
Author: vincent
Date: Mon Jul 19 11:30:50 2010
New Revision: 37182
URL: http://svn.erp5.org?rev=37182&view=rev
Log:
Remove unused definitions of CachingMethod.
Also, update warning message.
Modified:
erp5/trunk/products/ZSQLCatalog/SQLCatalog.py
Modified: erp5/trunk/products/ZSQLCatalog/SQLCatalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/SQLCatalog.py?rev=37182&r1=37181&r2=37182&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/SQLCatalog.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/SQLCatalog.py [utf8] Mon Jul 19 11:30:50 2010
@@ -84,20 +84,11 @@ except ImportError:
try:
from Products.ERP5Type.Cache import enableReadOnlyTransactionCache, \
- disableReadOnlyTransactionCache, CachingMethod, \
- caching_instance_method
+ disableReadOnlyTransactionCache, caching_instance_method
except ImportError:
- LOG('SQLCatalog', WARNING, 'Count not import CachingMethod, expect slowness.')
+ LOG('SQLCatalog', WARNING, 'Count not import caching_instance_method, expect slowness.')
def doNothing(context):
pass
- class CachingMethod:
- """
- Dummy CachingMethod class.
- """
- def __init__(self, callable, **kw):
- self.function = callable
- def __call__(self, *opts, **kw):
- return self.function(*opts, **kw)
def caching_instance_method(*args, **kw):
return lambda method: method
enableReadOnlyTransactionCache = doNothing
More information about the Erp5-report
mailing list