Hello,
I have a form with the following fields :
class TypeProduitAttributs(widgets.WidgetsList):
attribut = widgets.TextField()
valeurs = widgets.RepeatingFieldSet(repetitions=3,
fields=[widgets.TextField(name="valeur")])
class TypeProduitFields(widgets.WidgetsList):
id = widgets.TextField(attrs=dict(readonly=True))
nom = widgets.TextField(
validator=validators.UnicodeString(not_empty=True))
attributs = widgets.RepeatingFieldSet(repetitions=2,
fields=TypeProduitAttributs())
so with nested RepeatingFieldSets
The form has fields=TypeProduitFields()
I'd like to specify the repetition at render time.
I know how to specify it for the "main" RepeatingFieldSet by
passing repetitions = dict(attributs = 4) but I can't find how to deal
with the inner RepeatingFieldSets.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---