oops tls-sprint
authorsylvain.thenault@logilab.fr
Fri, 20 Feb 2009 17:39:48 +0100
branchtls-sprint
changeset 911 467fb77c6a33
parent 908 136d91725ecf
child 912 9ad0867692e1
oops
web/form.py
--- a/web/form.py	Fri Feb 20 17:38:10 2009 +0100
+++ b/web/form.py	Fri Feb 20 17:39:48 2009 +0100
@@ -296,7 +296,8 @@
     def render(self, form, field):
         self.add_media(form)
         name, values, attrs = self._render_attrs(form, field)
-        inputs = [tags.input(name=name, value=value, type=self.type, **attrs),
+        assert len(values) == 1
+        inputs = [tags.input(name=name, value=values[0], type=self.type, **attrs),
                   '<br/>',
                   tags.input(name=name+'-confirm', type=self.type, **attrs),
                   '&nbsp;', tags.span(form.req._('confirm password'),