[Zope3-dev] field validation in edit form

Richard Jones richard@commonground.com.au
Sun, 13 Jul 2003 10:03:36 +1000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday, July 13, 2003, at 07:03  AM, Garrett Smith wrote:
> Brad Bollenbach wrote:
>> Your suggestion to make this configurable may or may not remain
>> useful, depending on whether or not the current behaviour would be
>> considered to be Doing The Right Thing.
>
> Not sure what you mean here. I would expect the edit form to complain
> about missing required fields. Perhaps the Right Thing here is to 
> simply
> set strict to true?

The other thing to remember here is that required is a minimalist sorta 
concept in Widget land. If a field is required, then you're just saying 
there must be some value for the field, even if it's an "empty" value 
(ie. an empty string or similar). If you wish to make a text widget be 
non-empty, then you need to enforce a min_length constraint.


     Richard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE/EKHZrGisBEHG6TARAtx2AJ9bPwMObTDPSZvJgQ2M/uTveSkkJACcDyCw
reVSpdzpCISeJgBI7674O+I=
=B93u
-----END PGP SIGNATURE-----