Have a look at the post_login method of RootController. Change the
last few lines to

userid = request.identity['repoze.who.userid']
if came_from.decode() == '/':
    came_from = tg.url(get_userpage(userid))
flash(....)
redirect(came_from)

get_userpage should contain your page access logic and return a url
string based on userid

regards
Sanjiv
On Thu, Jul 9, 2009 at 2:26 AM, shaw1ea<[email protected]> wrote:
>
> Where is the login_handler method located in the source code for tg2?
> I am trying to implement post logon url so that the user is directed
> to an appropriate page after they log in.  How do I specify which page
> the user will get directed to based on their username and password.
> The users permissions must be used to determine the proper page.  Can
> someone explain this or direct me to an example that show how to do
> this?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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