5 messages in com.googlegroups.pylons-discussPylons equivalent of cherrypy's serve...
FromSent OnAttachments
Chris24 Jun 2008 19:40 
Jonathan Vanasco24 Jun 2008 20:18 
Garland, Ken R24 Jun 2008 20:36 
Shannon -jj Behrens24 Jun 2008 23:15 
Chris26 Jun 2008 19:32 
Subject:Pylons equivalent of cherrypy's serve_file?
From:Chris (life@gmail.com)
Date:06/24/2008 07:40:43 PM
List:com.googlegroups.pylons-discuss

Is there a Pylons equivalent of CherryPy's serve_file ? I'm trying to allow file download for files that are not in the 'public' directory

In cherry py, it'd go something like this: from cherrypy.lib.static import serve_file class Root: @cherrypy.expose def download(self, name): return serve_file(os.path.join(download_dir, name), content_type='text/plain')

Many thanks.