Package Products :: Package ZenUtils :: Module config :: Class ConfigLoader
[hide private]
[frames] | no frames]

Class ConfigLoader

source code

object --+
         |
        ConfigLoader

Lazily load the config when requested.

Instance Methods [hide private]
 
__init__(self, config_files, config=Config, parser=Parser())
@param config Config The config instance or class to load data into.
source code
 
load(self)
Load the config_files into an instance of config_class
source code
 
__call__(self)
Lazily load the config file.
source code
Method Details [hide private]

__init__(self, config_files, config=Config, parser=Parser())
(Constructor)

source code 

@param config Config The config instance or class to load data into. Must support update which accepts an iterable of (key, value). @param parser Parser The parser to use to parse the config files. Must be a callable and return an iterable of (key, value). @param config_files list<string> A list of config file names to parse in order.

Overrides: object.__init__