I'm totally in favor for it.
On 6/24/07, Mark Ramm <[EMAIL PROTECTED]> wrote:
>
> Does anybody use tg_format for anything other than setting up a URL
> returns json?
>
> We are thinking about depricating or dropping support for tg_format
> becase we've come up with cleaner ways of doing content negotiation --
> even for http get requests.
>
> For requests where we can set the accepts header we can just use that.
> For URL based content negotiation we can use the extension.
>
> If we did this /person.html would return HTML and /person.js would
> return json (provided you've allowed that with an @expose decorator).
> Ideally, this would become extensible so that person.pdf could
> return a pdf document if you had a buffet engine which could return
> PDF.
>
the expose decorator should still accept a parameter for setting the
extension. like the current as_format
> What do you all think?
>
> --
> Mark Ramm-Christensen
> email: mark at compoundthinking dot com
> blog: www.compoundthinking.com/blog
>
> >
>
--
cheers
elvelind grandin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---