Back to index

plone3  3.1.7
IValidationService.py
Go to the documentation of this file.
00001 from interface import Interface, Attribute
00002 
00003 class IValidationService(Interface):
00004 
00005     def validate(name_or_validator, value, *args, **kwargs):
00006         """call the validator of a given name"""
00007 
00008     def validatorFor(name_or_validator):
00009         """return the validator for a given name"""
00010 
00011     def register(validator):
00012         """load a validator for access by name"""
00013 
00014     def unregister(name_or_validator):
00015         """unregisters a validator by name"""