On Friday 16 February 2007 12:17, Marco Mariani wrote:
> fractions = wid.RepeatingFieldSet('fractions',
> fields = [
>
> wid.SingleSelectField('module',options=[('','')]),
>
> wid.TextField('amount',validator=val.Money),
> ]
> )
>
>
> I'm wondering about the way to change module options from the controller...
>
> should be something like
>
> params = {
> 'value': invoice,
> 'repetitions': {'fractions': len(invoice.fractions)+2},
> 'options': {'fractions': {'module':[('foo','foo')]}}
> }
>
> right? I'm sure I miss something between fractions and module
>
> repetitions work, amount values are filled from the invoice, but options
> stays empty.
You've got things turned around here.
It should work with
params['module'] = {'options' : [('foo', 'foo')]}
Diez
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---