merge tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 30 Apr 2009 13:08:11 +0200
branchtls-sprint
changeset 1602 3cca95459779
parent 1584 323eed40a2b7 (current diff)
parent 1601 171afa270086 (diff)
child 1603 56217e741939
merge
--- a/web/formrenderers.py	Thu Apr 30 13:07:09 2009 +0200
+++ b/web/formrenderers.py	Thu Apr 30 13:08:11 2009 +0200
@@ -15,6 +15,7 @@
 from cubicweb.web import eid_param
 from cubicweb.web import formwidgets as fwdgs
 from cubicweb.web.widgets import checkbox
+from cubicweb.web.formfields import HiddenInitialValueField
 
 
 class FormRenderer(object):
@@ -145,6 +146,8 @@
         return tag + '>'
 
     def display_field(self, form, field):
+        if isinstance(field, HiddenInitialValueField):
+            field = field.visible_field
         return (self.display_fields is None
                 or (field.name, field.role) in self.display_fields
                 or (field.name, field.role) in form.internal_fields)