From a4c280a81cfa893643fb576bb3f08330e25fa2a4 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 6 Apr 2007 07:55:18 +0000 Subject: [PATCH] Add a fallback definition of is_web_mode. This fixes documentation_view page template. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13990 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_xhtml_style/field_render.xml | 3 ++- product/ERP5/bootstrap/erp5_xhtml_style/bt/revision | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml index 614bc2d729..71c6ef3e83 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml @@ -85,7 +85,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n field_errors python: request.get(\'field_errors\', {});\n field_has_error python: field_errors.has_key(field_id);\n global form_id form_id | python: form.id;\n - field_description python: here.Base_getFieldDescription(form_id=form_id, field=field)">\n + field_description python: here.Base_getFieldDescription(field=field);\n + is_web_mode is_web_mode | nothing">\n <div tal:define="html_render python: field.render_htmlgrid(value, request)"\n tal:attributes="title field_description;\n class python: \' \'.join([x for x in [\'field\', field.is_required() and \'required\' or None, field_has_error and \'error\' or None, field.get_value(\'css_class\') or None] if x is not None])"\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 755152b7ef..483387c8ec 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -359 \ No newline at end of file +363 \ No newline at end of file -- 2.30.9