Do you want a static number of fieldsets or a variable number of field sets?

form = widgets.TableForm(
    fields=[widgets.FieldSet("your_fieldset",legend="Range",
fields=CommentFields())],
    hidden_fields = [],
    action="save",
    submit_text="Save")

The above should display, within the form, a single field set that
contains the fields in CommentFields.  From what it sounds like you
are trying to do you shouldn't have to really invent anything.  Tell
us how it goes.

  -Ian

On 8/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'd like to have a Form with one or more FieldSets inside using
> widgets.
>
> This didn't work:
>
> form = widgets.TableForm(fields=widgets.FieldSet("your_fieldset",
> legend="Range", fields=CommentFields()),action="save")
>
> After looking in the source of forms.py it seems that class Form can
> only handle a fields list.
>
> Do I overlook something here or does this possibilty just not exist,
> and
> I have to invent it myself?
>
> What's the best approach to do so?
>
> --
> Greg
>
>
> >
>

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