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

Public Member Functions

def __init__ (self, dist, **kw)
 
def ensure_string_list (self, option)
 
def reinitialize_command (self, command, reinit_subcommands=0, **kw)
 

Static Public Attributes

 command_consumes_arguments
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  dist,
**  kw 
)
Construct the command for dist, updating
vars(self) with any keyword parameters.

Member Function Documentation

◆ ensure_string_list()

def ensure_string_list (   self,
  option 
)
Ensure that 'option' is a list of strings.  If 'option' is
currently a string, we split it either on /,\s*/ or /\s+/, so
"foo bar baz", "foo,bar,baz", and "foo,   bar baz" all become
["foo", "bar", "baz"].

◆ reinitialize_command()

def reinitialize_command (   self,
  command,
  reinit_subcommands = 0,
**  kw 
)

Field Documentation

◆ command_consumes_arguments

command_consumes_arguments
static

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