[TurboGears] Re: json, tg_flash question

2008-04-10 Thread stoKes
On Sep 20 2007, 9:21 am, Mark Ramm [EMAIL PROTECTED] wrote: 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

[TurboGears] Re: json, tg_flash question

2007-09-20 Thread Lee McFadden
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

[TurboGears] Re: json, tg_flash question

2007-09-20 Thread Mark Ramm
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

[TurboGears] Re: json, tg_flash question

2007-09-20 Thread iain duncan
On Thu, 2007-20-09 at 09:21 -0400, Mark Ramm wrote: 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