Short answer, yes.   Should pretty much work the way you expect but
with a slightly updated name.

On Wed, Dec 17, 2008 at 9:16 AM, Christophe de VIENNE
<[email protected]> wrote:
>
> Hi,
>
> In tg1 one could use the accept_format parameter of @expose to select
> the right template from the accept-type header of the http request :
>
> @expose("genshi:myhtmltemplate", accept_format="text/html",
> content_type="text/html")
> @expose("genshi:myxmltemplate", accept_format="text/xml",
> content_type="text/xml")
> @expose("myengine:mypdftemplate", accept_format="application/x-pdf",
> content_type="application/x-pdf")
> def myfunction(self):
>    # etc
>
>
> In TG2 there is no accept_format parameter for expose.
> Is the content_type parameter enough to implement such a behavior ?
>
> Thanks,
>
> Chrisotophe
>
> >
>



-- 
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to