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

Shane Hathaway shane@zope.com
Tue, 29 Jul 2003 09:44:25 -0400


Steve Alexander wrote:
> Here's a different ASCII chart that includes my fancy "N/A" feature 
> where a user can enter something that looks like "N/A" into a text 
> widget to indictate that it is missing.
> 
> 
>                 Non-empty input      Empty or no input   Matches "N/A"-like
>                                                          regex
> 
>  Required       Set the field value  Validation fails    Validation fails
> 
>  Not required   Set the field value  Set field value to  Set field to
>                                      an empty string     missing_value
> 
> 
> I don't think this is an important feature for text widgets in general. 
> I include it here to illustrate where the missing_value comes in.

If the forms framework supports this functionality, and the knowledge of 
the chart is fully encapsulated in the widget, I'll be quite happy with 
the framework.

Shane