web/formwidgets.py
branchstable
changeset 2360 1d43aa551ba9
parent 2356 ef9e30485ee7
child 2366 e4229723b824
--- a/web/formwidgets.py	Thu Jul 09 16:15:52 2009 +0200
+++ b/web/formwidgets.py	Thu Jul 09 16:44:34 2009 +0200
@@ -89,13 +89,6 @@
     """<input type='text'>"""
     type = 'text'
 
-    def render(self, form, field):
-        if hasattr(field, 'max_length') and field.max_length:
-            self.attrs.setdefault('size', min(45, field.max_length))
-            self.attrs.setdefault('maxlength', field.max_length)
-        return super(TextInput, self).render(form, field)
-
-
 
 class PasswordInput(Input):
     """<input type='password'> and its confirmation field (using