[mod_python] mod_python adapter for mod_wsgi in the make

Graham Dumpleton graham.dumpleton at gmail.com
Fri Nov 27 06:46:34 EST 2009


2009/11/25 Martijn Moeling <martijn at xs4us.nu>:
> Hi all you mod_python fans!
>
> Since I am developing a python web-os (with browser based desktop) which
> is heavily dependant on mod_python I am not very happy to see the
> development stop of MP.
>
> Since MOD_WSGI is the alternative I know for a while now I have to move.
> In my case this seems possible to crate a "fake" MOD_PYTHON module which
> communicates with MOD_WSGI and runs the application.
>
> Up to now I have had some success but there is still some work to do
> around apache.py but it all seems possible. That said, I do not use the
> Publisher handler and I might not be able to implement that part or I
> might need help

A few questions.

If you don't use publisher, what parts do you use?

1. PSP?
2. cgihandler?
3. FieldStorage?
4. Session?
5. Cookie?
6. import_module() and import overlay?
7. request_rec, server_rec, conn_rec wrappers?
8. ap_internal_redirect() wrappers?

Overall, what is it about mod_python that you are doing would make it
a better platform that WSGI?

Are you aiming for 100% compatibility or more just the style of
writing applications?

Some stuff like Cookie and FieldStorage could be switched to more
modern Python standard library equivalents, but obviously they would
not be wholly interface compatible.

The mod_python interfaces are also quite arbitrary and not well
thought out in places due to egregious growth over time and could do
with some cleanup to make things more uniform.

Graham


More information about the Mod_python mailing list