OpenQuizz
Une application de gestion des contenus pédagogiques
Email Class Reference
Inheritance diagram for Email:
Collaboration diagram for Email:

Public Member Functions

def __init__ (self, *typing.Optional[str] error=None)
 
str __call__ (self, str value)
 
- Public Member Functions inherited from Validator
str __repr__ (self)
 
typing.Any __call__ (self, typing.Any value)
 

Data Fields

 error
 

Static Public Attributes

 USER_REGEX
 
 DOMAIN_REGEX
 
 DOMAIN_WHITELIST
 
 default_message
 
- Static Public Attributes inherited from Validator
 error
 

Detailed Description

Validate an email address.

:param error: Error message to raise in case of a validation error. Can be
    interpolated with `{input}`.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
*typing.Optional[str]   error = None 
)

Member Function Documentation

◆ __call__()

str __call__ (   self,
str  value 
)

Field Documentation

◆ default_message

default_message
static

◆ DOMAIN_REGEX

DOMAIN_REGEX
static

◆ DOMAIN_WHITELIST

DOMAIN_WHITELIST
static

◆ error

error

◆ USER_REGEX

USER_REGEX
static

The documentation for this class was generated from the following file: