I want to use a MultipleSelectField in a form with a few other
components, and I need to be able to specify both what the options are
and which options are selected at display time.  I have some basic
code that looks like this:

-----------------------------
class ProjectFields(widgets.WidgetsList):
        id = widgets.HiddenField(validator=validators.NotEmpty())
        name = widgets.TextField(validator=validators.NotEmpty())
        tags = widgets.MultipleSelectField()

project_form = widgets.ListForm( fields=ProjectFields(), action="/edit/
save_project" )
------------------------------

What do i need to pass to project_form.display() to tell the
MultipleSelectField what the options are and which should be selected?


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

Reply via email to