Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     String.__init__(self, *args, **kwargs)
     # Insert validation into self.validators so that multiple errors can be
     # stored.
     self.validators.insert(0, _emails_validate)
Ejemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     String.__init__(self, *args, **kwargs)
     # Insert validation into self.validators so that multiple errors can be
     # stored.
     self.validators.insert(0, RFCEmailValidator(error=self.error_messages["invalid"]))