> Why is the url not properly displayed when you return self.secondpage?

Because if you do the return, you are essentially substituting one
call for another, rather than redirecting to it.

> When you finish with page1 handler and you do:
> return self.secondpage( tg_errors, data )
> the url is localhost:8080/firstpage_handler
>
> but using redirect the url is properly displayed.
> raise tg.redirect( tg.url("secondpage", tg_errors=None, **data) )
> localhost:8080/secondpage
>
> What is a proper way to do it?

it depends on your requirements, I use return when I want to pass
validated info in, I use redirect otherwise.


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