Although I'm seeking to understand this in general, my current
objective is to change the label at display time. Can this be done
with display() or by overriding update_params?
Randall
On Jul 31, 4:50 pm, Randall <[EMAIL PROTECTED]> wrote:
> This is working:
>
> test_params = {'field_class':{'test':'new_field_class'}}
>
> but seems backwards.
>
> Randall
>
> On Jul 31, 4:38 pm, Randall <[EMAIL PROTECTED]> wrote:
>
> > I thought I knew how to do this, but I can't get it working. I want
> > to override params for widgets in a form at display time.
>
> > test_text = TextField(name='test', label='label')
> > test_form = ListForm(fields=[test_text])
> > test_params={'test':{'field_class':'new_field_class'}}
>
> > # In the template
>
> > ${test_form.display(value=None, **test_params)}
>
> > No problem with overriding the params for the form, but I can't
> > override the params of the form's widgets. This is doable, right?
>
> > Randall
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---