So if i use the first method, there's no way for me to pass the
options - just which pre-existing options are selected?
Is this something that can be done in ToscaWidgets? This seems like
an unreasonable limitation.
-Ryan
On Apr 30, 2:41 am, Johnny Blonde <[EMAIL PROTECTED]>
wrote:
> 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
-~----------~----~----~----~------~----~------~--~---