display internal_fields tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 30 Apr 2009 18:31:43 +0200
branchtls-sprint
changeset 1628 888871a071d9
parent 1627 ec241d3a69ea
child 1629 cfbcf96ea054
child 1633 1b92dd5da331
display internal_fields
web/formrenderers.py
--- a/web/formrenderers.py	Thu Apr 30 18:15:08 2009 +0200
+++ b/web/formrenderers.py	Thu Apr 30 18:31:43 2009 +0200
@@ -149,6 +149,7 @@
         if isinstance(field, HiddenInitialValueField):
             field = field.visible_field
         return (self.display_fields is None
+                or field.name in form.internal_fields
                 or (field.name, field.role) in self.display_fields
                 or (field.name, field.role) in form.internal_fields)