[Erp5-report] r26262 - /erp5/trunk/products/ERP5/Tool/DomainTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 2 19:04:31 CEST 2009
Author: yo
Date: Thu Apr 2 19:04:30 2009
New Revision: 26262
URL: http://svn.erp5.org?rev=26262&view=rev
Log:
Deprecation is overkill.
Modified:
erp5/trunk/products/ERP5/Tool/DomainTool.py
Modified: erp5/trunk/products/ERP5/Tool/DomainTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/DomainTool.py?rev=26262&r1=26261&r2=26262&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/DomainTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/DomainTool.py [utf8] Thu Apr 2 19:04:30 2009
@@ -69,7 +69,8 @@
Search all predicates which corresponds to this particular
context.
- - sort_method parameter is deprecated: use sort_key_method instead.
+ - sort_method parameter should not be used, if possible, because
+ it can be very slow. Use sort_key_method instead.
- sort_key_method parameter is passed to list.sort as key parameter if it
is not None. This allows to sort the list of predicates found. The most
@@ -208,8 +209,6 @@
if sort_key_method is not None:
result_list.sort(key=sort_key_method)
elif sort_method is not None:
- LOG('searchPredicateList', 0,
- 'sort_method parameter is deprecated: sort_key_method instead')
result_list.sort(cmp=sort_method)
# LOG('searchPredicateList, result_list after sort', 0, result_list)
return result_list
More information about the Erp5-report
mailing list