if you set tg.strict_parameters to False (which it is by default in
the production but not development mode) you can do

@expose...
def foo(self, tg_format="default")
   ....

On 5/31/06, Steven James <[EMAIL PROTECTED]> wrote:
>
> The changelog for .9a6 reports that tg_format has "properly" been
> removed from the parameters passed to functions. My application
> responds slightly differently to json and normal requests (a redirect
> for normal requests, and a response for json). This is so that
> non-javascript users can receive a full refresh of current data, while
> json-enabled users can receive an update of only the information they
> need. My old way of accessing tg_format has been removed.
>
> Is there a new way to determine in my function whether the server will
> be sending back a json response or rendered html? Some class variable
> that I'm missing perhaps?
>
> Steven James
>
>
> >
>


-- 
cheers
    elvelind grandin

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

Reply via email to