Interface object to QM configuration files.
Configuration files are in the format parsed by the standard
ConfigParser module, namely 'win.ini'--style files.
Methods
|
|
Get
GetOptions
Load
__init__
|
|
Get
|
Get (
self,
option,
default,
section=None,
)
Retrieve a configuration variable.
-
option
- The name of the option to retrieve.
-
default
- The default value to return if the option is not
found.
-
section
- The section from which to retrieve the option.
None indicates the section specified to the Load method for
this instance.
- precondition
- The RC configuration must be loaded.
|
|
GetOptions
|
GetOptions ( self, section=None )
Return a sequence of options.
-
section
- The section for which to list options, or
None
for the section specified to Load .
- precondition
- The RC configuration must be loaded.
|
|
Load
|
Load ( self, section )
Load configuration.
-
section
- The configuration section from which subsequent
variables are loaded.
|
|
__init__
|
__init__ ( self )
Create a new configuration instance.
|
|