[mod_python] [RFC] mod_python embedded python module

Miguel Marques miguel at yorku.ca
Wed Feb 7 14:35:45 EST 2001

On Wed, 7 Feb 2001 14:19:28 -0500, "Jason F. McBrayer" <jmcbray at carcosa.net> wrote:
> On Wed, Feb 07, 2001 at 08:59:53AM -0500, Brent Verner wrote:
> >   Secondly, after looking into mod_python and mod_snake, I've 
> > decided that _I_ like mod_python (the base python/apache binding)
> > much better than mod_snake. Now, I'm not a python programmer, but
> > there's no better way to learn than to do, so last night I started
> > hacking up a module/handler to handle documents having embedded
> > HTML, the feature which drew me toward mod_snake at first.
> You might also take a look at PMZ (Poor Man's Zope,
> pmz.sourceforge.net), which already does this very well.  I did some
> work to make it usable as a mod_python module, but I think the
> original author has also done so in parallel.  In any case, it's not
> too hard to do -- just get PMZ and work on wrapping it in a handler
> function, redirecting IO appropriately.
Another option is getting Zope and extracting DocumentTemplate and
using it.  It allows you to easily insert data from python objects 
into html templates and it has some very nice helper functions you can
use in your templates.

I've several web applications using mod_python and DocumentTemplate
and they work rather nicely.  I believe PMZ offers similar functionality
but you may want to look at DocumentTemplate and see which you like better.


C. Miguel Marques, York University, Computing & Network Services
e-mail: miguel at yorku.ca, voice: (416)736-2100x22684, fax: (416)736-5830

More information about the Mod_python mailing list