[Zope-dev] zope.app.form: Make "no value" always available?

Thomas Lotze thomas at thomas-lotze.de
Tue Aug 12 07:16:30 EDT 2008


zope.app.form items edit widgets don't provide the "no value" value if
the corresponding field is required. While this prevents invalid input, it
means that e.g. a drop-down box may then have one of the valid values
pre-selected. If user forgets to change that value, he could save the form
without noticing that the default value is implicitly selected, which may
be completely wrong.

In some cases it would be preferrable for the widget to default to a "no
value" value even if the field is required so the form won't validate if
the user doesn't consciously select a value. One of our customers asked
for this behaviour, for example. If noone objects, we'd like to change
zope.app.form accordingly.

-- 
Thomas Lotze · tl at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development



More information about the Zope-Dev mailing list