OpenQuizz
Une application de gestion des contenus pédagogiques
Arbitrary Class Reference
Inheritance diagram for Arbitrary:
Collaboration diagram for Arbitrary:

Public Member Functions

def format (self, value)
 
- Public Member Functions inherited from NumberMixin
def __init__ (self, *args, **kwargs)
 
def schema (self)
 
- Public Member Functions inherited from Raw
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)
 
def schema (self)
 

Additional Inherited Members

- Data Fields inherited from NumberMixin
 multiple
 
- Data Fields inherited from MinMaxMixin
 minimum
 
 exclusiveMinimum
 
 maximum
 
 exclusiveMaximum
 
- Data Fields inherited from Raw
 attribute
 
 default
 
 title
 
 description
 
 required
 
 readonly
 
 example
 
 mask
 

Detailed Description

A floating point number with an arbitrary precision.

ex: 634271127864378216478362784632784678324.23432

Member Function Documentation

◆ format()

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.


The documentation for this class was generated from the following file: