OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, check=False, ip=False, local=False, domains=None, exclude=None) |
def | error (self, value, msg=None) |
def | is_ip (self, value) |
def | __call__ (self, value) |
def | __schema__ (self) |
Data Fields | |
check | |
ip | |
local | |
domains | |
exclude | |
Validate an email. Example:: parser = reqparse.RequestParser() parser.add_argument('email', type=inputs.email(dns=True)) Input to the ``email`` argument will be rejected if it does not match an email and if domain does not exists. :param bool check: Check the domain exists (perform a DNS resolution) :param bool ip: Allow IP (both ipv4/ipv6) as domain :param bool local: Allow localhost (both string or ip) as domain :param list|tuple domains: Restrict valid domains to this list :param list|tuple exclude: Exclude some domains
def __init__ | ( | self, | |
check = False , |
|||
ip = False , |
|||
local = False , |
|||
domains = None , |
|||
exclude = None |
|||
) |
def __call__ | ( | self, | |
value | |||
) |
def __schema__ | ( | self | ) |
def error | ( | self, | |
value, | |||
msg = None |
|||
) |
def is_ip | ( | self, | |
value | |||
) |
check |
domains |
exclude |
ip |
local |