fix NameError stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 18 Jan 2010 15:58:06 +0100
branchstable
changeset 4250 39adce674a09
parent 4247 b1d79216d930
child 4252 6c4f109c2b03
child 4254 966f62e97c72
fix NameError
web/formwidgets.py
--- a/web/formwidgets.py	Mon Jan 18 11:50:54 2010 +0100
+++ b/web/formwidgets.py	Mon Jan 18 15:58:06 2010 +0100
@@ -479,7 +479,7 @@
         elif self.onclick:
             attrs['onclick'] = self.onclick
         if self.name:
-            attrs['name'] = name
+            attrs['name'] = self.name
             if self.setdomid:
                 attrs['id'] = self.name
         if self.settabindex and not 'tabindex' in attrs: