need to cleanup values if we don't want them to be interpreted by fields (title is a common field name for instance) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 27 May 2009 15:01:15 +0200
branchstable
changeset 1964 b60719223965
parent 1963 c97c03082de9
child 1965 34f57246330d
need to cleanup values if we don't want them to be interpreted by fields (title is a common field name for instance)
web/formrenderers.py
--- a/web/formrenderers.py	Wed May 27 15:00:38 2009 +0200
+++ b/web/formrenderers.py	Wed May 27 15:01:15 2009 +0200
@@ -456,6 +456,9 @@
           '#<span class="icounter">1</span> '
           '[<a href="javascript: %(removejs)s;noop();">%(removemsg)s</a>]</div>'
           % values)
+        # cleanup values
+        for key in ('title', 'removejs', 'removemsg'):
+            values.pop(key)
         self.render_fields(w, form, values)
         w(u'</div></div>')
         return '\n'.join(data)