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)
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, 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)
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, version=4, allow_null=True, throw_exception=False, message=None): self.version = version Validator.__init__(self, field, allow_null, throw_exception, message)
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)
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)
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)
def __init__(self, field, value, throw_exception=False, message=None): self.value = value Validator.__init__(self, field, False, throw_exception, message)
def __init__(self, field): Validator.__init__(self, field, False)
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)