[CentralOH] web.py

Mark Erbaugh mark at microenh.com
Tue Oct 21 15:50:48 CEST 2008


I'm using the web server built in to web.py. In this particular
application, it may be all that is needed as it is low-volume, in-house
and limited use.

web.py has the ability to statically serve binary files from a
directory /static/. The client application expects binary files to be
served from a directory /data/.  Is there any way to have web.py treat
requests for files from /data/ like it does for /static/?

I found the code that does this (it's in httpserver.py) and modified it
to work in this case, but I dislike monkeying with "library" code so I'm
wondering if there is a better way?

Thanks,
Mark



More information about the CentralOH mailing list