[Erp5-report] r45322 romain - /erp5/trunk/products/ERP5Form/EditorField.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 12 11:07:44 CEST 2011


Author: romain
Date: Tue Apr 12 11:07:44 2011
New Revision: 45322

URL: http://svn.erp5.org?rev=45322&view=rev
Log:
Render fields css classes and extras even if the field is not editable.

Modified:
    erp5/trunk/products/ERP5Form/EditorField.py

Modified: erp5/trunk/products/ERP5Form/EditorField.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/EditorField.py?rev=45322&r1=45321&r2=45322&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/EditorField.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/EditorField.py [utf8] Tue Apr 12 11:07:44 2011
@@ -28,6 +28,7 @@
 ##############################################################################
 
 from Products.Formulator import Widget, Validator
+from Products.Formulator.Widget import render_element
 from Products.Formulator.Field import ZMIField
 from Products.Formulator.DummyField import fields
 from Products.ERP5Type.Utils import convertToUpperCase
@@ -129,7 +130,10 @@ class EditorWidget(Widget.TextAreaWidget
     """
     if value is None:
       value = ''
-    return value
+    return render_element("div",
+                          css_class=field.get_value('css_class'),
+                          contents=value,
+                          extra=field.get_value('extra'))
 
 EditorWidgetInstance = EditorWidget()
 



More information about the Erp5-report mailing list