OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, str method, *typing.Optional[str] error=None, **kwargs) |
typing.Any | __call__ (self, typing.Any value) |
![]() | |
str | __repr__ (self) |
Data Fields | |
method | |
error | |
kwargs | |
Static Public Attributes | |
default_message | |
![]() | |
error | |
Call the specified ``method`` of the ``value`` object. The validator succeeds if the invoked method returns an object that evaluates to True in a Boolean context. Any additional keyword argument will be passed to the method. :param method: The name of the method to invoke. :param error: Error message to raise in case of a validation error. Can be interpolated with `{input}` and `{method}`. :param kwargs: Additional keyword arguments to pass to the method.
def __init__ | ( | self, | |
str | method, | ||
*typing.Optional[str] | error = None , |
||
** | kwargs | ||
) |
typing.Any __call__ | ( | self, | |
typing.Any | value | ||
) |
Reimplemented from Validator.
|
static |
error |
kwargs |
method |