[mod_python] Re: Calling APR optional functions provided by modules

Graham Dumpleton grahamd at dscpl.com.au
Wed Nov 23 18:42:55 EST 2005


Sorry, quick answer as have practically no time for the next week to
read email. Already gotten in trouble for sending this. :-)

The issue has been discussed previously and I posted some
sample code which might be able to be adapted to create a loadable
module for Python usable in context of mod_python to achieve
some of what you want.

See mailing list archive:

   http://www.modpython.org/pipermail/mod_python/2005-May/018164.html
   http://www.modpython.org/pipermail/mod_python/attachments/ 
20050523/9fa0275b/_mp_mod_ssl.obj
   http://www.modpython.org/pipermail/mod_python/attachments/ 
20050523/9fa0275b/setup.obj

This way of doing things means that there is no changes needed to  
mod_python,
however, it can be a bit tricky to build the module in the first place.

You'll just need to go back and forth through mailing list archive  
thread, as will
not necessarily have more time to discuss it further.

Graham


On 24/11/2005, at 8:04 AM, Deron Meranda wrote:

> I went ahead and coded and tested patches to mod_python 3.2.5b
> which allow access to many mod_ssl parameters in early request
> phases.
>
> I don't know how contributed enhancements like this are normally
> handled, so I'm attaching the patch files to this email.  If they
> should instead go someplace else please let me know.
>
> Basically I added two new methods to the request object.
>
>   req.is_https()
>   req.ssl_var()
>
> which will invoke the mod_ssl optional functions ssl_is_https()
> and ssl_var_lookup().  They safely handle the case where
> mod_ssl is not loaded or not available.
>
> They also work perfectly fine from say the PythonAccessHandler
> phase, whereas using subprocess_env does not.
> --
> Deron Meranda
>
> <requestobject.c.patch>
> <modpython4.tex.patch>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>



More information about the Mod_python mailing list