[web2py] Re: How can one retrieve user's email upon verify_email action

2012-04-20 Thread Anthony
> > When you said '*an argument* of the verify_email_onaccept callback', you > meant an argument of the callback function supplied to > auth.settings.verify_email_onaccept > > , right? My understanding is that you provide a callback function to > Web2py, which is going to be called upon the acce

[web2py] Re: How can one retrieve user's email upon verify_email action

2012-04-20 Thread mrtn
Thanks for the suggestion, Anthony. When you said '*an argument* of the verify_email_onaccept callback', you meant an argument of the callback function supplied to auth.settings.verify_email_onaccept , right? My understanding is that you provide a callback function to Web2py, which is going t

[web2py] Re: How can one retrieve user's email upon verify_email action

2012-04-19 Thread Anthony
> > I intend to do this in the model, via > auth.settings.verify_email_onaccept.append(lambda form: mail.send(to=' > user.em...@example.com',subject='Welcome!', > message="new > user email is %s'%form.vars.email")) > > > I think the

[web2py] Re: How can one retrieve user's email upon verify_email action

2012-04-19 Thread mrtn
I've tried to retrieve the email address using 'form.vars.email', but it gives me KeyError exception. I guess this is because that there is barely anything in the 'form' object returned by auth.verify_email()