web/form.py
branchtls-sprint
changeset 911 467fb77c6a33
parent 908 136d91725ecf
child 913 5dfba71b1872
--- 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'),