In turbogears 2 we've also added an exclude_names parameter to the
expose decorator, which takes a list of elements to remove from the
dictionary before send it to the template for rendering.

This is specifically so that you can remove widgets, flash, and other
things from JSON, or other automatically rendered output.

--Mark

On 9/20/07, Lee McFadden <[EMAIL PROTECTED]> wrote:
>
> Well, you should never *have* to do it.  Since the returned object is
> a dictionary why would it matter?  Just don't access the data with the
> 'tg_flash' key and you've effectively done the same thing as removing
> it from the output. :)
>
>
> On 9/20/07, iain duncan <[EMAIL PROTECTED]> wrote:
> >
> > Wondering if it is possible to remove the tg flash variable from json
> > responses. Or is this something one should never have to do?
> >
> > Thanks
> > Iain
> >
> >
> > >
> >
>
>
> --
> Lee McFadden
>
> blog: http://www.splee.co.uk
> work: http://fireflisystems.com
> skype: fireflisystems
>
> >
>


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