[Zope3-dev] Re: [Zope3-checkins] CVS: Zope3/src/zope/schema -_bootstrapfields.py:1.19.2.1

Shane Hathaway shane@zope.com
Mon, 28 Jul 2003 19:45:07 -0400 (EDT)


On Mon, 28 Jul 2003, Garrett Smith wrote:

> Shane Hathaway wrote:
> >> That said, it annoys me that these distinctions are so subtle -- it
> >> will be hard for casual developers to grok the implications setting
> >> required and missing_value.
> > 
> > That seems excessively subtle.  Can't we just make the text widget act
> > differently for required text fields than for non-required text
> > fields? 
> 
> How would it act differently in these two modes?

Here's an ASCII chart.

                 Non-empty input       Empty or no input
Required         Set the field value   Validation fails
Not required     Set the field value   Set field value to an empty string

Note that the missing_value doesn't apply in any case.

Shane