OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | bson_type (self) |
def | transform_bson (self, value) |
Base class for defining type codec classes which describe how a BSON type can be transformed to a custom type. Codec classes must implement the ``bson_type`` attribute, and the ``transform_bson`` method to support decoding. See :ref:`custom-type-type-codec` documentation for an example.
def bson_type | ( | self | ) |
The BSON type to be converted into our own type.
def transform_bson | ( | self, | |
value | |||
) |
Convert the given BSON value into our own type.