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

Public Member Functions

def __init__ (self, func)
 
def convert (self, value, param, ctx)
 
- Public Member Functions inherited from ParamType
def __call__ (self, value, param=None, ctx=None)
 
def get_metavar (self, param)
 
def get_missing_message (self, param)
 
def split_envvar_value (self, rv)
 
def fail (self, message, param=None, ctx=None)
 

Data Fields

 name
 
 func
 

Additional Inherited Members

- Static Public Attributes inherited from ParamType
bool is_composite = False
 
 name = None
 
 envvar_list_splitter = None
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  func 
)

Member Function Documentation

◆ convert()

def convert (   self,
  value,
  param,
  ctx 
)
Converts the value.  This is not invoked for values that are
`None` (the missing value).

Reimplemented from ParamType.

Field Documentation

◆ func

func

◆ name

name

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