We could add a hidden parameter to the widget (by default False in the
base class).

<tr py:for="widget in widgets" py:if="not widget.hidden">

I believe the for comes before the if in Kid's order of attributization :)

Kevin

On 12/15/05, Jared Kuolt <[EMAIL PROTECTED]> wrote:
>
> I've created a Hidden widget and I'd like it so that it won't show up
> in the TableForm. What would be a best practice for that? Shall we
> have a "hidden" parameter? I'm more than willing to incorporate it
> into turbogears.widgets.forms.
>
> The real problem lies in the fact that each widget is for'd, like so:
>     <tr py:for="widget in widgets">
> And basically forced into the display.
>
> Thoughts?
>
> Jared
>


--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to