Package turbogears :: Module config

Module config

source code

Functions
 
update_config(configfile=None, modulename=None)
Updates the system configuration either from a ConfigObj (INI-style) config file, a module name specified in dotted notation or both (the module name is assumed to have a ".cfg" extension).
source code
 
get(key, default_value=None, return_section=False, path=None)
Retrieves a config value
source code
 
update(configvalues)
Updates the configuration with the values from the dictionary.
source code
Function Details

update_config(configfile=None, modulename=None)

source code 

Updates the system configuration either from a ConfigObj (INI-style) config file, a module name specified in dotted notation or both (the module name is assumed to have a ".cfg" extension). If both are specified, the module is called first, followed by the config file. This means that the config file's options override the options in the module file.