display_field takes form as argument tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 12 Mar 2009 20:45:13 +0100
branchtls-sprint
changeset 1109 9e472941abd4
parent 1108 1e5ed5f57f2f
child 1110 c71997f514ba
display_field takes form as argument
web/form.py
--- a/web/form.py	Thu Mar 12 20:44:58 2009 +0100
+++ b/web/form.py	Thu Mar 12 20:45:13 2009 +0100
@@ -686,7 +686,7 @@
         form.form_build_context(values)
         fields = form.fields[:]
         for field in form.fields:
-            if not self.display_field(field):
+            if not self.display_field(form, field):
                 fields.remove(field)
                 
             if not field.is_visible():