Hi folks, I need to tie some serving of uploaded files into my permission
system, so I can't just use a static handler ( I think ).

When the following URL is hit:

/files/42__the_uploaded_file.jpg

My FileView gets called, checking which associated piece of content owns
that file, checks permissions, and then returns the file.
I know how to do everything until the last bit, 'return the file'1. Can
anyone tell me how I can manually return a webob response that properly
handles all mime types, just like the built in static handler does? Or where
I should look in docs to figure out how to do it? I see that Pyramid uses
pastes StaticURLParser, but the code was not immediately obvious to me, so
maybe there is a simpler way?

thanks!
Iain

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

Reply via email to