Serving files with Turbogears2

Posted by Lionel on Stack Overflow See other posts from Stack Overflow or by Lionel
Published on 2010-05-09T01:59:51Z Indexed on 2010/05/09 2:08 UTC
Read the original article Hit count: 305

Filed under:
|
|

How do I serve files from an arbitrary directory with Turbogears2?

I have a database with the local path, e.g. /home/myuser/tg2env/MyProject/myproject/files/somefile.jpg

tg.url seems to only be able to serve things from the public directory.

Is there a widget available, or do I need to write some sort of DownloadController?

© Stack Overflow or respective owner

Related posts about turbogears

Related posts about files