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: object

Processing 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_routines and config_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:

Config

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:

Config

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() or load_config()). It takes a flat config and returns a flat config.

Return type:

Config

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:

Config

postload(flat_config)

Post-load processing.

Function applied to the flat config to modify it after loading. It takes a flat config and returns a flat config.

Return type:

Config