If a user tries to access a secure page and they are not logged in, TurboGears wants to display the login page, and after the user logs in, to take them back to the page they were trying to access. I'm not sure about previous_url, but forward_url is the page to go to if login succeeds.
Barry ----- Original Message ---- From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: TurboGears <[email protected]> Sent: Thursday, December 13, 2007 8:53:44 PM Subject: [TurboGears] What are previous_url and forward_url (Identity) and how used for action value? I'm a newbie trying to understand the Identity (password) source code of TurboGears... What are "previous_url" and "forward_url"?? (They appear in login() controller method.) More importantly, how can the login form in login.kid have <form action="${previous_url}" method="POST"> ??? So it wants a script with the same name as every page that tries to have a user login? Please elaborate. Sincerely, Chris ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

