[Erp5-report] r38342 ivan - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 14 12:45:43 CEST 2010
Author: ivan
Date: Tue Sep 14 12:45:41 2010
New Revision: 38342
URL: http://svn.erp5.org?rev=38342&view=rev
Log:
Set cell a bit earlier so editable fields of listbox can use it.
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=38342&r1=38341&r2=38342&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py [utf8] Tue Sep 14 12:45:41 2010
@@ -2340,7 +2340,10 @@ class ListBoxHTMLRendererLine(ListBoxRen
ignore_layout = int(request.get('ignore_layout', \
not request.get('is_web_mode', False) and 1 or 0))
ui_domain = 'erp5_ui'
-
+ # We need a way to pass the current line object (ie. brain) to the
+ # field which is being displayed. Since the render_view API did not
+ # permit this, we use the 'cell' value to pass the line object.
+ request.set('cell', brain)
html_list = []
# Generate page selection methods based on the Listbox id
@@ -2464,10 +2467,6 @@ class ListBoxHTMLRendererLine(ListBoxRen
error_message = u''
display_value = original_value
- # We need a way to pass the current line object (ie. brain) to the
- # field which is being displayed. Since the render_view API did not
- # permit this, we use the 'cell' value to pass the line object.
- request.set('cell', brain)
enabled = editable_field.get_value('enabled', REQUEST=request)
editable = editable_field.get_value('editable', REQUEST=request)
if enabled:
More information about the Erp5-report
mailing list