[mod_python] Python API for doing subrequests? (was 'lookup')

Chad Whitacre chad at zetaweb.com
Sat Sep 2 11:25:28 EDT 2006


All,

> It looks like mod_perl has API for performing subrequests, lookup_uri 
> and lookup_file:
> 
> http://www.samspublishing.com/articles/article.asp?p=27110&seqNum=17&rl=1
> 
> I don't see anything parallel in mod_python. Has this ever been discussed?

I do see a "main" attribute on the request object with this doc:

  "If this is a sub-request, pointer to the main request."
  http://www.modpython.org/live/current/doc-html/pyapi-mprequest-mem.html

So it appears that it's possible to be called as a subrequest, but I'm 
not seeing a Python API for making that call. Eh?



chad


More information about the Mod_python mailing list