Esempio n. 1
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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 9
0
    def __init__(self, field, value, throw_exception=False, message=None):
        self.value = value

        Validator.__init__(self, field, False, throw_exception, message)
Esempio n. 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)
Esempio n. 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)
Esempio n. 12
0
 def __init__(self, field):
     Validator.__init__(self, field, False)
Esempio n. 13
0
 def __init__(self, field):
     Validator.__init__(self, field, False)
Esempio n. 14
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)
Esempio n. 15
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)
Esempio n. 16
0
    def __init__(self, field, value, throw_exception=False, message=None):
        self.value = value

        Validator.__init__(self, field, False, throw_exception, message)
Esempio n. 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)