[Erp5-report] r29378 - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 2 16:01:08 CEST 2009
Author: jerome
Date: Fri Oct 2 16:01:07 2009
New Revision: 29378
URL: http://svn.erp5.org?rev=29378&view=rev
Log:
revert r16886. The problem with this change was that the list_lines was stored
in the selection, and can never be reseted, so using a TALES for "lines" in
listbox was not working, because it was always returning the value from
selection.
Modified:
erp5/trunk/products/ERP5Form/ListBox.py
Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=29378&r1=29377&r2=29378&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py [utf8] Fri Oct 2 16:01:07 2009
@@ -2411,10 +2411,6 @@
def getMaxLineNumber(self):
"""Return the maximum number of lines shown in a page.
"""
- list_lines = self.getParamDict().get('list_lines', None)
- if list_lines is not None:
- # it's possible to override max lines from selection parameters
- return int(list_lines)
return self.field.get_value('lines')
getMaxLineNumber = lazyMethod(getMaxLineNumber)
More information about the Erp5-report
mailing list