[EMAIL PROTECTED] schrieb:
> I've changed the code to:
> 
>     @expose(fragment = True)
>     def default(self, *args, **kwargs):
> [...]
>         elif action == 'image':
>             response.headers['Content-type'] = "image/jpeg"
>             return product.image
> 
> which at least has the desired effect in this case.
> It'd still be interesting to know if you could effect the expose
> decorator used from within the controller if anyone has an idea how
> that could work, 'twould be great :)))

Just use an internal redirect and write a dedicated method to serve the
image. See also

http://docs.turbogears.org/1.0/StaticFiles

and

http://docs.turbogears.org/1.0/ServeDynamicFiles


Chris

--~--~---------~--~----~------------~-------~--~----~
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