you can either call display like this
form.display(values= { 'name': 'a Name', 'tags': [1,2,3] } ) # passing
a list of id´s to tags

or - if you already know your values during form-creation-time:

id = widgets.HiddenField(validator=validators.NotEmpty(), default=123)
name = widgets.TextField(validator=validators.NotEmpty(), default='My
Name')
tags = widgets.MultipleSelectField(options=[(1, 'one'), (2, 'two'),
(3, 'three')], default=[1, 3])

Hope it helps,
Frank


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