OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
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 | output (self, key, obj, **kwargs) |
def | __schema__ (self) |
Data Fields | |
enum | |
discriminator | |
required | |
![]() | |
min_length | |
max_length | |
pattern | |
![]() | |
attribute | |
default | |
title | |
description | |
required | |
readonly | |
example | |
mask | |
Marshal a value as a string. Uses ``six.text_type`` so values will be converted to :class:`unicode` in python2 and :class:`str` in python3.
def __init__ | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Reimplemented from StringMixin.
def format | ( | self, | |
value | |||
) |
Formats a field's value. No-op by default - field classes that modify how the value of existing object keys should be presented should override this and apply the appropriate formatting. :param value: The value to format :raises MarshallingError: In case of formatting problem Ex:: class TitleCase(Raw): def format(self, value): return unicode(value).title()
Reimplemented from Raw.
def schema | ( | self | ) |
Reimplemented from Raw.
discriminator |
enum |
required |