OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | format (self, value) |
![]() | |
def | __init__ (self, default=None, attribute=None) |
def | output (self, key, obj) |
Additional Inherited Members | |
![]() | |
attribute | |
default | |
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 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 :exception MarshallingException: In case of formatting problem Ex:: class TitleCase(Raw): def format(self, value): return unicode(value).title()
Reimplemented from Raw.