--On 16. August 2008 18:27:45 +0200 Andreas Petermann <[EMAIL PROTECTED]> wrote:

Hi list,
i am new to plone and i am wondering if it is possible to add a standard
validator to every field without adding it to the field definitions?

Why not?

I
know it is possible to define a new field class which uses the special
validator as the default one but i do not want to define for every
existing field a new one.

Declaring a validator for each field is just one-line-more within the field definition within a schema...possibly less work than writing this posting. The field definition should explicitly define a field in one place - this includes the definition of the validators - except you implementation validation on the application - either through one of the various AT hooks or through validate_XXX() methods.

-aj

Attachment: pgpvcqTxUY7GJ.pgp
Description: PGP signature

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to