Anthony,
I thought reset_password would have its own context, but you're right,
it works just like the register_mail context.
Annet
I don't get this to work, because I don't know how to set
some_context.
Kind regards,
Annet.
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')
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
4 matches
Mail list logo