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

Public Member Functions

def __init__ (self, *args, name, isolated=False, **kwargs)
 
def check_default (self, option, key, val)
 
def get_default_values (self)
 
def error (self, msg)
 
- Public Member Functions inherited from CustomOptionParser
def insert_option_group (self, idx, *args, **kwargs)
 
def option_list_all (self)
 

Data Fields

 name
 
 config
 
 values
 

Detailed Description

Custom option parser which updates its defaults by checking the
configuration files and environmental variables

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
args,
  name,
  isolated = False,
**  kwargs 
)

Member Function Documentation

◆ check_default()

def check_default (   self,
  option,
  key,
  val 
)

◆ error()

def error (   self,
  msg 
)

◆ get_default_values()

def get_default_values (   self)
Overriding to make updating the defaults after instantiation of
the option parser possible, _update_defaults() does the dirty work.

Field Documentation

◆ config

config

◆ name

name

◆ values

values

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