Le 29/09/2015 00:53, Leonel Câmara a écrit :
> This version of yours should work
>
> def browser_email(): context = dict( 
>         verification_url_on_site_enabled=False, 
>         illustration_image_enabled=False, 
>         main_title_enabled=False 
>         ) 
>
>     return response.render('templates/email_verification.html', context) 
>
> Yes put it in a model. A module is also fine as long as you get
> response from gluon.current.

First I'd like to thank you very much for your guidance, you really
helped me through the reasoning process.

But actually, I found what was wrong, I read the core chapter a
few times but I did take too lightly the word :

/"The view must have the same name as the action (unless
specified otherwise)"/

Mine didn't, as I thought that response.view or response.render
did specify it.. Actually no, it seems. An empty file named like the
controller function does the trick. As you said, the redirection was
done without any variable.

Everything is ok now ! It was really surprising that something as
simple as I wanted to do led to a so complicate handling.

Sorry if I wasted your time, yet you didn't waste mine at all so thanks
again. ;)

Kind regards,

-- 
“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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to