from gluon.template import render

use render instead of response render

help(render) for more info

On Oct 21, 1:30 pm, mattynoce <[email protected]> wrote:
> hi all. i'm trying to have a consistent html email look and feel for
> my site. one issue i'm having is with auth.messages like
> reset_password and response.render.
>
> in a controller, i can do this:
>     email = {}
>     email['address'] = '[email protected]'
>     context = dict(email=email)
>     messageHtml = response.render('default/email/test.html', context)
>
> but in my model, i'm left with something like this:
> auth.messages.reset_password = response.render('default/email/
> test.html', dict(key=???))
>
> and i'd like to give it a context so it can access the key, but i
> don't know how to do it. any suggestions? is it possible to render
> under context in this example?
>
> thanks,
>
> matt

Reply via email to