trollfot at gmail.com
Wed Jul 21 05:36:43 EDT 2010
and if you want a sequence of Object, your field must be a List or Set
or Tuple, with a Object value_type
2010/7/21 Christian Klinger <cklinger at novareto.de>:
> i think the problem is you don't return the right object.
> Maybe you have to turn on pdb to look what goes on.
>> Ok, but how do I do this?
>> I played a bit with CustomWidgetFactory and ObjectWidget but no joy yet.
>> I plugged the following to lines into the form class and it renders
>> okay. However, it does not save the data because the validation fails.
>> object_widget = CustomWidgetFactory(ObjectWidget, FooField)
>> form_fields['data_fields_ext'].custom_widget =
>> CustomWidgetFactory(SequenceWidget, subwidget=object_widget)
>> Any further hint is appreciated!
>> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
>> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>> Grok-dev mailing list
>> Grok-dev at zope.org
> Grok-dev mailing list
> Grok-dev at zope.org
More information about the Grok-dev