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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 13 21:46:19 CET 2008


Author: jerome
Date: Thu Mar 13 21:33:19 2008
New Revision: 19880

URL: http://svn.erp5.org?rev=19880&view=rev
Log:
In the TALES context for the editable field, 'cell' is supposed to be the
brain, not the object.

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=19880&r1=19879&r2=19880&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Thu Mar 13 21:33:19 2008
@@ -2085,7 +2085,7 @@
           # use the 'cell' value (refer to get_value method in Form.py)
           cell_request = brain.asContext( REQUEST = self.renderer.request
                                         , form    = self.renderer.request.form
-                                        , cell    = self.getObject()
+                                        , cell    = brain
                                         )
           if editable_field.get_value('enabled', REQUEST=cell_request):
             cell_html = editable_field.render( \




More information about the Erp5-report mailing list