Exemple #1
0
 def not_bella(self, value, field=None, **kwargs):
     if value == 'bella':
         raise FieldValidationError(FieldError(field, 'invalid'))
     return value
Exemple #2
0
 def not_fiona(value, **kwargs):
     if value == 'fiona':
         raise FieldValidationError(FieldError(self, 'invalid'))
     return value
Exemple #3
0
 def not_fiona(value, schema=None, field=None):
     if value == 'fiona':
         raise FieldValidationError(FieldError(field, 'invalid'))
     return value
Exemple #4
0
 def validate_mark(value, schema=None, field=None):
     if value == 'mark':
         return value
     raise FieldValidationError(FieldError(field, 'invalid'))