Victor wrote:
> @tg.expose()
> def default(self, name, action, *args, **kwargs):
> redirect(tg.url('/site', dict(name=name, action=action,
> **kwargs)))
>
Just a note: redirect() is supposed to be raised, so that you can
clearly see there is a disruption of program flow (like with a return)
> But...doing so will change the url. What I want is not to change the
> url. Is there any way to achieve this?
>
You can raise cherrypy.InternalRedirect, but it won't change your
request parameters: name and action will still be there.
Or just call the method and return its value.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---