[mod_python] excluding files from traversal

Clodoaldo clodoaldo.pinto.neto at gmail.com
Mon Sep 8 13:47:26 EDT 2008


2008/9/8 Dzhelil Rufat <dzhelil at gmail.com>:
> Hello,
>
> I have an index.py and a bunch of other python libraries in my mod_python
> directory. I use the publisher as my mod_python handler.
>
> I would like for publisher to traverse only the index.py file and not any of
> the library python files that reside in the same directory. How can I
> specify this in httpd.conf?
>
> I tried something like
>
> SetHandler mod_python index.py
>
> but that did not work.
>
> Right now, I use the following configuration for httpd.conf:
>
> <Directory /mod_python_dir>
>     SetHandler mod_python
>     PythonHandler mod_python.publisher
>     PythonDebug On
> </Directory>

The best aproach would be to put those files out of the site root tree
like in /home/my_site_modules

Regards, Clodoaldo Pinto Neto

> Thank you.
>
>
> _______________________________________________
> 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