web/formwidgets.py
branchtls-sprint
changeset 1425 3ad7cfca481e
parent 1392 d6279efff7b3
child 1474 716f0742ee7f
--- a/web/formwidgets.py	Wed Apr 22 16:55:46 2009 +0200
+++ b/web/formwidgets.py	Wed Apr 22 16:56:03 2009 +0200
@@ -165,6 +165,8 @@
         
     def render(self, form, field):
         name, curvalues, attrs = self._render_attrs(form, field)
+        if not 'size' in attrs:
+            attrs['size'] = '5'
         options = []
         for label, value in field.vocabulary(form):
             if value is None: