I had some trouble today returning a static file from a controller
action.  I think this could be made easier by a class method on
webob.Response that sets the headers for the file (MIME type,
caching), and can be returned instead of the regular response.

Alternatively, a method in the base controller could configure the
global response, but that would be controller-specific whereas the
WebOb method could be used in any context.

Supposedly you can return a WSGI application from an action, but i
couldn't get it to work with paste.fileapp.

I put a Pylons ticket for it:
http://pylonshq.com/project/pylonshq/ticket/355

Any ideas?

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to