[mod_python] Multiple handlers in a single directory

Jason F. McBrayer jmcbray at bertrand.carcosa.net
Wed Dec 27 13:22:23 EST 2000


On Wed, Dec 27, 2000 at 09:56:47AM -0500, Gregory Trubetskoy wrote:
> 
> To be consistent, I would have to add a directive like this for every
> phase....
> 
> A more or less simple alternative would be to write a handler that invokes
> other handlers based on file extension.

This is what I'm doing currently.  It seems to be the best solution,
and it has its own kind of logic to it -- once you're in the handler,
you've handed things off to Python, so you might as well do all the
processing in Python instead of in the apache conf file.

-- 
+----------------------------------------------------------------+
| Jason F. McBrayer                         jmcbray at carcosa.net  |
| The scalloped tatters of the King in Yellow must hide Yhtill   |
| forever.                    R.W. Chambers _The King in Yellow_ |



More information about the Mod_python mailing list