Package muntjac :: Package data :: Package validators :: Module email_validator :: Class EmailValidator
[hide private]
[frames] | no frames]

Class EmailValidator

source code

                               object --+                
                                        |                
                     validator.IValidator --+            
                                            |            
         abstract_validator.AbstractValidator --+        
                                                |        
abstract_string_validator.AbstractStringValidator --+    
                                                    |    
                     regexp_validator.RegexpValidator --+
                                                        |
                                                       EmailValidator

String validator for e-mail addresses. The e-mail address syntax is not complete according to RFC 822 but handles the vast majority of valid e-mail addresses correctly.

See AbstractStringValidator for more information.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
__init__(self, errorMessage)
Creates a validator for checking that a string is a syntactically valid e-mail address.
source code

Inherited from regexp_validator.RegexpValidator: __getstate__, __setstate__, isValidString

Inherited from abstract_string_validator.AbstractStringValidator: isValid

Inherited from abstract_validator.AbstractValidator: getErrorMessage, setErrorMessage, validate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, errorMessage)
(Constructor)

source code 

Creates a validator for checking that a string is a syntactically valid e-mail address.

Parameters:
  • errorMessage - the message to display in case the value does not validate.
Overrides: object.__init__