you can refer to the quickstart generated project.
especially templates/login.html and root.py/login.

It use a variable 'came_from' to memorize the original page

On 1月9日, 下午5时28分, heretoo <[email protected]> wrote:
> How do I generate a url that points to the login page handled by
> repoze.what, which then redirects back to the originating page after
> login is successful?
>
> I have <a href="${tg.url('/login')}">Login</a>, at the moment, but
> redirects tohttp://localhost:8080/only.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to