> I have a form that includes a CheckBoxList field:
>
> contact_author_form = TableForm(name='contact', fields=[
> widgets.CheckBoxList('items', label=_(u'Книги'),
Note that you really are supposed to have the English translation in
the _()-strings. Then you translate to other languages.
> validator=validators.String(),
> options=[]),
> # other fields here
>
> The problem is that I need to populate choices at runtime, when the form is
> rendered. I *cannot* simply pass a callable object when form is defined
> because choices depends on the value being passed in the request. And I
> failed to find a way to pass the options at display() time.
contact_author_form.field_for("items").options.extend([your choices here])
--
mvh Björn
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---