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

Public Member Functions

def check (self, value)
 
def to_json (self, value)
 
def to_python (self, value)
 
- Public Member Functions inherited from JSONTag
def __init__ (self, serializer)
 
def tag (self, value)
 

Static Public Attributes

 key
 
- Static Public Attributes inherited from JSONTag
 key
 

Additional Inherited Members

- Data Fields inherited from JSONTag
 serializer
 

Member Function Documentation

◆ check()

def check (   self,
  value 
)
Check if the given value should be tagged by this tag.

Reimplemented from JSONTag.

◆ to_json()

def to_json (   self,
  value 
)
Convert the Python object to an object that is a valid JSON type.
The tag will be added later.

Reimplemented from JSONTag.

◆ to_python()

def to_python (   self,
  value 
)
Convert the JSON representation back to the correct type. The tag
will already be removed.

Reimplemented from JSONTag.

Field Documentation

◆ key

key
static

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