> > the expose decorator should still accept a parameter for setting the
> > extension. like the current as_format
>
> Yes, I'd need that as well 'cause there are times when I'm generating dynamic
> contents and I don't always have a file to work with (I can create a random
> filename, but...).

We'd be keeping the basic behavior of the current @expose behavior
which returns JSON when either the parameter tg_format=json is passed
in, or there the proper accept header is passed in.  And there would
be no need for a file.   We'd just pull the .json extension off of the
end of the URL and use that as an alternative to tg_format=json

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