Of course I did. That's why I referenced the mimetypes module you
mentioned. But it doesn't get around the fact that the mimetype is set
in the decorator before the actual controller method, so AFAIK,
there's no way to give it information gathered from within the method.

-Min

On Aug 26, 6:23 pm, "Diez B. Roggisch" <[email protected]> wrote:
> Min schrieb:
>
> > Thanks, the open() method seems to work, but how would I use the
> > mimetypes module? I can seem to only be able to set it in the expose
> > decorator, but I'd like to be able to use the same method to serve
> > jpgs, pngs, and even pdfs.
>
> Did you bother reading my first answer?
>
> Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to