Le 28/09/2015 18:24, Leonel Câmara a écrit :
> My guess is that you have put this in layout.html and not all your
> pages have verification_url_on_site_enabled defined.
>
> The easiest fix would be to make sure it's defined changing it to
> something like this:
>
> {{verification_url_on_site_enabled =
> globals().get('verification_url_on_site_enabled', False)}}
> {{if verification_url_on_site_enabled:}} 
>     {{block verification_url_on_site_block}} 
>         <td> <a href="{{=verification_url_on_site}}"> View this
> message in your browser</a> </td>
>     {{end}} 
> {{pass}}

I thought of something like that but the thing is that the variables are
not
passed at all, so it doesn't work.

Actually all the code comes from the app/controller/default.py and
app/view/templates/email_template.html files.

email_template doesn't extend layout.html or any other file, it's a
standalone
file which is designed to be sent as an email with embedded css and js.

So my question is : if declaring variables in the controller isn't
sufficient, whereas
in the docs examples it seems to be, where should they be defined to be
available
in all views ? I surely miss something.

Thank you,

-- 
“One original thought is worth a thousand mindless quotings.”
“Le vrai n'est pas plus sûr que le probable.”

                                              Diogene Laerce


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to