[mod_python] passing a relative URL to handler?

Adrian Holovaty modpython at holovaty.com
Thu Jan 15 16:13:27 EST 2004


Earlier, I wrote:
> Is there a way of passing the relative URL (relative to the httpd.conf
> "Location") to a mod_python handler?

I just learned mod_perl request objects have a location() method that returns 
"the path of the <Location> section from which the current Perl*Handler is 
being called." 

http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_location

It'd be useful if mod_python request objects had a similar method...

Adrian



More information about the Mod_python mailing list