[Erp5-report] r24112 - /erp5/trunk/products/ERP5Type/Utils.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 9 07:49:29 CEST 2008
Author: rafael
Date: Thu Oct 9 07:49:28 2008
New Revision: 24112
URL: http://svn.erp5.org?rev=24112&view=rev
Log:
set sort_order if defined.
Modified:
erp5/trunk/products/ERP5Type/Utils.py
Modified: erp5/trunk/products/ERP5Type/Utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Utils.py?rev=24112&r1=24111&r2=24112&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py (original)
+++ erp5/trunk/products/ERP5Type/Utils.py Thu Oct 9 07:49:28 2008
@@ -77,6 +77,8 @@
sort_on = tuple([isinstance(x, str) and x or tuple(x) for x in sort_on])
try:
sort_kw = sort_kw_cache[sort_on]
+ if sort_order is not None:
+ sort_kw["reverse"] = (sort_order in ('descending', 'reverse', 'DESC'))
except KeyError:
new_sort_on = []
reverse_dict = {}
More information about the Erp5-report
mailing list