[mod_python] Multiple handlers in a single directory

Gregory Trubetskoy grisha at modpython.org
Wed Dec 27 09:56:47 EST 2000


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.

--
  Gregory (Grisha) Trubetskoy
       grisha at modpython.org

On Wed, 27 Dec 2000, Damjan wrote:

> I want to have multiple Python handlers in one directory, but each handling a
> different type of file. Is there a way I can do this?
> 
> I imagined it could be done with a directive like this:
> ...
> PythonAddHandler mod_python.publisher .py
> PythonAddHandler myscripts.handler1 .pyml
> PythonAddHandler myscripts.handler2 .html
> ...
> 
> How hard would it be to add a directive ike this?
> 
> Thanks.
> 
> -- 
> Damjan Georgievski		|           Дамјан Георгиевски
> Skopje, Macedonia		|           Скопје, Македонија
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
> 




More information about the Mod_python mailing list