cliconfig.processing.base
Base class for processing.
Used to make configuration object and run the routines in process_routines
and config_routines.
- class Processing
Bases:
objectProcessing base class.
Each processing classes contains pre-merge, post-merge, pre-save and post-load processing. They are used with routines that apply processing in
process_routinesandconfig_routines.That are applied in the order defined by the order attribute in case of multiple processing.
- premerge(flat_config)
Pre-merge processing.
Function applied to the flat config to modify it before merging. It takes a flat config and returns a flat config.
- Return type:
- postmerge(flat_config)
Post-merge processing.
Function applied to the flat config to modify it after merging . It takes a flat config and returns a flat config.
- Return type:
- endbuild(flat_config)
End-build processing.
Function applied to the flat config to modify it at the end of a building process (typically
make_config()orload_config()). It takes a flat config and returns a flat config.- Return type:
- presave(flat_config)
Pre-save processing.
Function applied to the flat config to modify it before saving. It takes a flat config and returns a flat config.
- Return type: