Shailesh Kochhar wrote: > Mike Orr wrote: >> On Mon, Dec 7, 2009 at 9:58 AM, Jonathan Vanasco >> <[email protected]> wrote: >>> mike- >>> >>> on the subject... does Pylons have a subrequest facility ? >>> >>> Some platforms , like mod_perl , offer it: >>> >>> http://perl.apache.org/docs/2.0/api/Apache2/SubRequest.html >>> >>> internal_redirect >>> >>> Redirect the current request to some other uri internally >> >> No. "return self.othermethod()" is the equivalent. > > Since the pylons Request and Response objects are thread locals, > self.othermethod() isn't an exact equivalent of a sub-request. The > application will still reference the existing Request object. If the > request parameters need to be changed, you'll need to do that before > calling self.othermethod(). > > I'm not sure how StackedObjectProxy works but perhaps a new Request > could be pushed on-top of the current one?
I tried updating request.params in one of my apps without much success. Turns out that request.params is dynamically generated from request.GET and request.POST. If you're trying to update request.params before redirecting to another method, you'll need to update one of the two. Best, - Shailesh -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
