[mod_python] send file back to apache?

Graham Dumpleton graham.dumpleton at gmail.com
Sun Jul 22 22:47:58 EDT 2007


What does the following do:

  req.filename = /some/path/to/file
  return apache.DECLINED

This should result in default-handler in Apache serving up the file.

Graham

On 23/07/07, Peter Shinners <pete at shinners.org> wrote:
> If I have the full path of a static file I want served, is there a way to
> let apache deal with it, after entering my mod_python handler?
>
> I've written the Python code to try sending a static file. It deals with
> ETag, caching, and stuff. It still seems like this would be a better task
> for apache?
>
> _______________________________________________
> 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