default does a take a lambda but one without arguments, because the info is
used before the form is submitted so there is no data (r).
On Mar 24, 2011, at 5:30 PM, pbreit wrote:
> I don't think that's quite the behavior I'm looking for. I want it to 1)
> default.paypal_email=email upon registration and 2) both email and
> paypal_email editable independently in Edit Profile.
>
> So this would be perfect:
>
> Field('paypal_email', length=128, default=lambda r: r.email))
>
> But "default" apparently doesn't take a lambda.