Back to index

plone3  3.1.7
IValidator.py
Go to the documentation of this file.
00001 from interface import Interface, Attribute
00002 
00003 class IValidator(Interface):
00004 
00005     name = Attribute("name of the validator")
00006     title = Attribute("title or name of the validator")
00007     description = Attribute("description of the validator")
00008 
00009     def __call__(value, *args, **kwargs):
00010         """return True if valid, error string if not"""
00011 
00012 
00013 class IValidationChain(IValidator):
00014     """Marker interface for a chain
00015     """