author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 19 May 2009 11:18:05 +0200 | |
branch | stable |
changeset 1861 | 21fae1546ac4 |
parent 1860 | ce67132ced1c |
child 1862 | 94dc8ccd320b |
child 1866 | 118c7528d08f |
web/form.py | file | annotate | diff | comparison | revisions |
--- a/web/form.py Tue May 19 11:01:42 2009 +0200 +++ b/web/form.py Tue May 19 11:18:05 2009 +0200 @@ -381,9 +381,10 @@ myattr = '%s_%s_default' % (field.role, field.name) if hasattr(self, myattr): return getattr(self, myattr)() + value = field.initial if callable(value): value = value(self) - return field.initial + return value def form_field_error(self, field): """return validation error for widget's field, if any"""