web/formwidgets.py
branchstable
changeset 4627 54de0ddd0bf3
parent 4597 e872097f2287
child 4658 25de2eb0432b
--- a/web/formwidgets.py	Thu Feb 18 10:57:50 2010 +0100
+++ b/web/formwidgets.py	Thu Feb 18 11:06:40 2010 +0100
@@ -164,9 +164,9 @@
         assert self.suffix is None, 'suffix not supported'
         values, attrs = self.values_and_attributes(form, field)
         assert len(values) == 1
-        id = attrs.pop('id')
+        domid = attrs.pop('id')
         inputs = [tags.input(name=field.input_name(form),
-                             value=values[0], type=self.type, id=id, **attrs),
+                             value=values[0], type=self.type, id=domid, **attrs),
                   '<br/>',
                   tags.input(name=field.input_name(form, '-confirm'),
                              value=values[0], type=self.type, **attrs),