OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, dash=False, **kwargs) |
def | output (self, key, obj, **kwargs) |
![]() | |
def | __init__ (self, *args, **kwargs) |
def | format (self, value) |
def | schema (self) |
![]() | |
def | __init__ (self, default=None, attribute=None, title=None, description=None, required=None, readonly=None, example=None, mask=None, **kwargs) |
def | __schema__ (self) |
Data Fields | |
dash | |
![]() | |
enum | |
discriminator | |
required | |
![]() | |
min_length | |
max_length | |
pattern | |
![]() | |
attribute | |
default | |
title | |
description | |
required | |
readonly | |
example | |
mask | |
Return the serialized object class name as string. :param bool dash: If `True`, transform CamelCase to kebab_case.
def __init__ | ( | self, | |
dash = False , |
|||
** | kwargs | ||
) |
def output | ( | self, | |
key, | |||
obj, | |||
** | kwargs | ||
) |
Pulls the value for the given key from the object, applies the field's formatting and returns the result. If the key is not found in the object, returns the default value. Field classes that create values which do not require the existence of the key in the object should override this and return the desired value. :raises MarshallingError: In case of formatting problem
Reimplemented from Raw.
dash |