Esempio n. 1
0
 def validates_email(self, key, email):
     email = normalize_str(email)
     assert is_email(email)
     return email
Esempio n. 2
0
 def validates_name(self, key, name):
     name = normalize_str(name)
     assert len(name) > 1
     assert len(name) < 65
     assert is_username(name)
     return name