[web2py] Re: html layout for retrieve_username and reset_password?

2011-09-19 Thread annet
Anthony, I thought reset_password would have its own context, but you're right, it works just like the register_mail context. Annet

[web2py] Re: html layout for retrieve_username and reset_password?

2011-09-16 Thread annet
I don't get this to work, because I don't know how to set some_context. Kind regards, Annet.

[web2py] Re: html layout for retrieve_username and reset_password?

2011-09-16 Thread Anthony
On Friday, September 16, 2011 2:42:28 AM UTC-4, annet wrote: I don't get this to work, because I don't know how to set some_context. some_context is just the dictionary of variables that you need to pass to the template to be rendered, like you do here: @auth.requires_membership('Admin')

[web2py] Re: html layout for retrieve_username and reset_password?

2011-09-14 Thread Anthony
I think auth.messages.reset_password just has to be a string that has %(key)s somewhere in it (for the reset key to be inserted). So, couldn't you do something like auth.messages.reset_password=response.render('admincms/register_email.html',some_context) to generate the message? Anthony On