--- 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),
' ', tags.span(form.req._('confirm password'),