[Erp5-report] r35547 tatuya - /erp5/trunk/products/ERP5Form/ListBox.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sun May 23 17:02:01 CEST 2010


Author: tatuya
Date: Sun May 23 17:02:00 2010
New Revision: 35547

URL: http://svn.erp5.org?rev=35547&view=rev
Log:
Set cell parameter before to get the enable field value, otherwise we can not use the cell property in the enable field itself.

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=35547&r1=35546&r2=35547&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py [utf8] Sun May 23 17:02:00 2010
@@ -2386,13 +2386,13 @@
           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:
-          # 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)
           # Field is editable only if listbox lists it in editable columns AND
           # if listbox_field is editable
           cell_html = editable_field.render(




More information about the Erp5-report mailing list