Text length validator

by Mikko Ohtamaa last modified Feb 16, 2011 02:10 AM

Validate that text is shorten than given limit

Project Description

A small validator class to perform server side maximum text length check.
 
This is useful for e.g. HTML text areas, because one cannot set  client side text length limitations. Browsers usually have 32kB limit for text areas.
   
Usage example:
     

        schema['description'].validators = TextLengthValidator("Maximum description length", 300)   

         

Current Release

No stable release available yet.

All Releases

Version Released Description Compatibility Licenses Status
0.1 Initial release More about this release…
Plone 2.1.2
Public Domain beta

Comments (0)