def __init__(self, field, allow_smtputf8=True,check_deliverability=True, allow_empty_local=False,
                 allow_null=True, throw_exception=False, message=None):

        self.allow_smtputf8 = allow_smtputf8
        self.check_deliverability = check_deliverability
        self.allow_empty_local = allow_empty_local

        Validator.__init__(self, field, allow_null, throw_exception, message)
Exemple #2
0
    def __init__(self,
                 field,
                 allow_null=True,
                 throw_exception=False,
                 message=None):
        self.all_locates = locale.locale_alias

        Validator.__init__(self, field, allow_null, throw_exception, message)
Exemple #3
0
    def __init__(self, field, regex, allow_null=False, throw_exception=False, message=None):
        try:
            self.regex = regex
            re.compile(regex)
        except re.error:
            raise AttributeError('Invalid Regex')

        Validator.__init__(self, field, allow_null, throw_exception, message)
Exemple #4
0
    def __init__(self,
                 field,
                 ipv6=False,
                 allow_null=True,
                 throw_exception=False,
                 message=None):
        self.ipv6 = ipv6

        Validator.__init__(self, field, allow_null, throw_exception, message)
Exemple #5
0
    def __init__(self,
                 field,
                 version=4,
                 allow_null=True,
                 throw_exception=False,
                 message=None):
        self.version = version

        Validator.__init__(self, field, allow_null, throw_exception, message)
Exemple #6
0
    def __init__(self,
                 field,
                 range_valid,
                 allow_null=True,
                 throw_exception=False,
                 message=None):
        self.range_valid = range_valid

        Validator.__init__(self, field, allow_null, throw_exception, message)
Exemple #7
0
    def __init__(self,
                 field,
                 max_length=None,
                 min_length=0,
                 throw_exception=False,
                 message=None):
        self.max_length = max_length
        self.min_length = min_length

        Validator.__init__(self, field, False, throw_exception, message)
Exemple #8
0
    def __init__(self,
                 field,
                 allow_smtputf8=True,
                 check_deliverability=True,
                 allow_empty_local=False,
                 allow_null=True,
                 throw_exception=False,
                 message=None):

        self.allow_smtputf8 = allow_smtputf8
        self.check_deliverability = check_deliverability
        self.allow_empty_local = allow_empty_local

        Validator.__init__(self, field, allow_null, throw_exception, message)
Exemple #9
0
    def __init__(self, field, value, throw_exception=False, message=None):
        self.value = value

        Validator.__init__(self, field, False, throw_exception, message)
Exemple #10
0
    def __init__(self, field, range_valid, allow_null=True, throw_exception=False, message=None):
        self.range_valid = range_valid

        Validator.__init__(self, field, allow_null, throw_exception, message)
Exemple #11
0
    def __init__(self, field, version=4, allow_null=True, throw_exception=False, message=None):
        self.version = version

        Validator.__init__(self, field, allow_null, throw_exception, message)
Exemple #12
0
 def __init__(self, field):
     Validator.__init__(self, field, False)
Exemple #13
0
 def __init__(self, field):
     Validator.__init__(self, field, False)
    def __init__(self, field, allow_null=True, throw_exception=False, message=None):
        self.all_locates = locale.locale_alias

        Validator.__init__(self, field, allow_null, throw_exception, message)
    def __init__(self, field, ipv6=False, allow_null=True, throw_exception=False, message=None):
        self.ipv6 = ipv6

        Validator.__init__(self, field, allow_null, throw_exception, message)
    def __init__(self, field, value, throw_exception=False, message=None):
        self.value = value

        Validator.__init__(self, field, False, throw_exception, message)
Exemple #17
0
    def __init__(self, field, max_length=None, min_length=0, throw_exception=False, message=None):
        self.max_length = max_length
        self.min_lenght = min_length

        Validator.__init__(self, field, False, throw_exception, message)