[z3-five] Widget for editing Tuple the same way lines works in Zope 2

Morten W. Petersen morten at nidelven-it.no
Sat Nov 18 16:01:15 CET 2006


Yuppie,
> I use it as custom_widget in formlib. In that case it is initialized 
> with (field, request). The way you use it, the widget seems to be 
> initialized with (field, field.value_type, request).
>
> If you can't change the way it is initialized, you have to add an 
> __init__ method that wraps around the inherited __init__ method.
>
> field.value_type is hardcoded as tuple, so you can ignore that value.

Aha.  OK.  ;)

Well it works now and if anyone wants it, I have the lines-like
widget available as a product.

Thanks very much for your help.

Regards,

Morten



More information about the z3-five mailing list