This module implements a flexible global configuration system.
Global configuration system.
Parameters: | template – a dictionary or a list of dictionary describing the template of configuration parameters, with key/value as: 'parameter_name':
[type, default_value, flag, validate_function, description]
|
---|
Each parameter is defined with a template, that it’s a list of 4 elements:
If the template is not valid, a GConfigTemplateError exception is raised.
Write parameters.
Parameters: | kw – keyword arguments with parameter_name:value pairs. |
---|
Warning
Only the parameters defined in the template are writted, the remaining are ignored.
Raised when something is wrong in the gconfig-template definition.