On Nov 10, 2006, at 1:05 PM, Alexandre Futata wrote:
> Hi!
>
> I'm unable to fill a field inside a widgets.FieldSet as I wish. I
> guess it's because it generates a variable with a "." (e.g.:
> 'address.city').
>
> So when I pass the value {'address.city': 'some address'} to the
> form through ${form(value=values)}, it's ignored despite '
> address.city' is the input name of the field in the editing form.
> How should I proceed?
To pass values to nested widget containers you should pass nested
dicts in exactly the same manner as the value is decoded by
FormEncode's NestedVariables when the data is submitted:
value = dict(address=dict(city='some_address'))
HTH,
Alberto
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---