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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 18 15:40:48 CET 2010


Author: romain
Date: Thu Nov 18 15:40:48 2010
New Revision: 40376

URL: http://svn.erp5.org?rev=40376&view=rev
Log:
Propagate editable_mode when browsing listbox lines.

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=40376&r1=40375&r2=40376&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py [utf8] Thu Nov 18 15:40:48 2010
@@ -2350,6 +2350,7 @@ class ListBoxHTMLRendererLine(ListBoxRen
     selection_name = renderer.getSelectionName()
     ignore_layout = int(request.get('ignore_layout', \
                         not request.get('is_web_mode', False) and 1 or 0))
+    editable_mode = int(request.get('editable_mode', 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
@@ -2435,6 +2436,8 @@ class ListBoxHTMLRendererLine(ListBoxRen
             params = []
             if ignore_layout:
               params.append('ignore_layout:int=1')
+            if editable_mode:
+              params.append('editable_mode:int=1')
             if selection_name:
               params.extend(('selection_name=%s' % selection_name,
                              'selection_index=%s' % self.index,




More information about the Erp5-report mailing list