OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, typing.Iterable iterable, *typing.Optional[str] error=None) |
typing.Any | __call__ (self, typing.Any value) |
![]() | |
str | __repr__ (self) |
Data Fields | |
iterable | |
values_text | |
error | |
Static Public Attributes | |
default_message | |
![]() | |
error | |
Validator which fails if ``value`` is a member of ``iterable``. :param iterable: A sequence of invalid values. :param error: Error message to raise in case of a validation error. Can be interpolated using `{input}` and `{values}`.
def __init__ | ( | self, | |
typing.Iterable | iterable, | ||
*typing.Optional[str] | error = None |
||
) |
typing.Any __call__ | ( | self, | |
typing.Any | value | ||
) |
Reimplemented from Validator.
|
static |
error |
iterable |
values_text |