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?


--

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.


Reply via email to