Configuration Implementation¶
Implementation regarding configuration files & their internal representation to the dput profile code.
- class dput.config.AbstractConfig(configs)¶
Abstract Configuration Object. All concrete configuration implementations must subclass this object.
Basically, all subclasses are bootstrapped in the same-ish way:
preload
get_defaults
set defaults
- abstract get_config(name, ignore_errors=False)¶
Get a configuration block. What this means is generally up to the implementation. However, please keep things sane and only return sensual upload target blocks.
- abstract get_config_blocks()¶
Get a list of all configuration blocks. Strings in a list.
- abstract get_defaults()¶
Get the defaults that concrete configs get overlaid on top of. In theory, this is set during the bootstrapping process.
- abstract preload(replacements)¶
Load all configuration blocks.
- abstract set_replacements(replacements)¶