Jason Chu wrote:
> I'm still in the midst of upgrading from 0.9a4 to 0.9a6 and one of the
> things I've noticed is that CompoundWidgets must have dict values
> passed to them. If I pass something like a SQLObject object the widget
> just ends up seeing {} as the value.
>
> Before, I could pass anything as the value and it'd be seen in the
> update_params function, no matter if it was a CompoundWidget or not.
>
> Most of my CompoundWidgets are widgets that display complex data, not
> ones that display disconnected data. I'd prefer to be able to pass
> non-dict values to a widget and still be able to modify the d['value']
> inside the update_params function.
>
> Instead I've been forced to override the display method to do my value
> manipulation.
>
> Suggestions?
>
Hi Jason,
this was discussed inside tg-trunk, basically passing an instance is
still working but I fear you haven't followed my advice of using
member_widgets hence you're getting an empty dict.
You should really consider using member_widgets + display_field_for
inside your widget's template. ;-)
Ciao
Michele
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---