# HG changeset patch # User Sylvain Thénault # Date 1242723702 -7200 # Node ID ce67132ced1cde4122087bc08d48357dd4d6a0e6 # Parent b068abd45a1c1821e62b413d085e52b1daead532 this is actually needed diff -r b068abd45a1c -r ce67132ced1c web/form.py --- a/web/form.py Tue May 19 11:01:33 2009 +0200 +++ b/web/form.py Tue May 19 11:01:42 2009 +0200 @@ -381,6 +381,8 @@ myattr = '%s_%s_default' % (field.role, field.name) if hasattr(self, myattr): return getattr(self, myattr)() + if callable(value): + value = value(self) return field.initial def form_field_error(self, field):