[Zope-dev] z3c.form - extraction from sequence widget

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 28 16:38:11 EDT 2008


On Thursday 28 August 2008, Martin Aspeli wrote:
> I suspect that we just need widget.SequenceWidget in z3c.form to have a
> special case for len(self.terms)==1, i.e. it's a checkbox with only one
> option, or maybe a special case for a BooleanField, or indeed have
> different widgets for Boolean and ICollection fields.

Widgets should not make these sort of decisions. I think this is the 
responsibility of the data converter. I am pretty sure that writing more 
specific data converters will solve our problem.

Thoughts?

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. "Zope Stephan Richter"


More information about the Zope-Dev mailing list