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

Public Member Functions

def __init__ (self)
 
def check_data (self)
 
def check_state_key (self, key)
 
def get_data (self)
 
def get_single_data (self)
 
def construct_document (self, node)
 
def construct_object (self, node, deep=False)
 
def construct_scalar (self, node)
 
def construct_sequence (self, node, deep=False)
 
def construct_mapping (self, node, deep=False)
 
def construct_pairs (self, node, deep=False)
 
def add_constructor (cls, tag, constructor)
 
def add_multi_constructor (cls, tag_prefix, multi_constructor)
 

Data Fields

 constructed_objects
 
 recursive_objects
 
 state_generators
 
 deep_construct
 

Static Public Attributes

 yaml_constructors
 
 yaml_multi_constructors
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ add_constructor()

def add_constructor (   cls,
  tag,
  constructor 
)

◆ add_multi_constructor()

def add_multi_constructor (   cls,
  tag_prefix,
  multi_constructor 
)

◆ check_data()

def check_data (   self)

◆ check_state_key()

def check_state_key (   self,
  key 
)
Block special attributes/methods from being set in a newly created
object, to prevent user-controlled methods from being called during
deserialization

◆ construct_document()

def construct_document (   self,
  node 
)

◆ construct_mapping()

def construct_mapping (   self,
  node,
  deep = False 
)

Reimplemented in SafeConstructor.

◆ construct_object()

def construct_object (   self,
  node,
  deep = False 
)

◆ construct_pairs()

def construct_pairs (   self,
  node,
  deep = False 
)

◆ construct_scalar()

def construct_scalar (   self,
  node 
)

Reimplemented in SafeConstructor.

◆ construct_sequence()

def construct_sequence (   self,
  node,
  deep = False 
)

◆ get_data()

def get_data (   self)

◆ get_single_data()

def get_single_data (   self)

Field Documentation

◆ constructed_objects

constructed_objects

◆ deep_construct

deep_construct

◆ recursive_objects

recursive_objects

◆ state_generators

state_generators

◆ yaml_constructors

yaml_constructors
static

◆ yaml_multi_constructors

yaml_multi_constructors
static

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