From c4858db1210c96a38daa5497772ec1ef5631bbfa Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Tue, 12 Apr 2011 09:07:44 +0000 Subject: [PATCH] Render fields css classes and extras even if the field is not editable. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45322 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/EditorField.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/product/ERP5Form/EditorField.py b/product/ERP5Form/EditorField.py index 33e0e243a6..6327a4c123 100644 --- a/product/ERP5Form/EditorField.py +++ b/product/ERP5Form/EditorField.py @@ -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() -- 2.30.9