Hi,
I have a form that includes a CheckBoxList field:
contact_author_form = TableForm(name='contact', fields=[
widgets.CheckBoxList('items', label=_(u'Книги'),
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.
Any help?
I'm sure there must be a way to specify options at display, but I cannot find
it. If there is no way to do this than it is a bug IMO.
TIA,
Max.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---