lib.item_conversion
This file is a special version of the configuration loader. It has been modified to support the conversion from CONF to YAML format. This configuration loader is only called by the converter tools/conf_to_yaml_converter.py.
- lib.item_conversion.convert_yaml(data)[Quellcode]
*Converter Special *
Convert data structure to yaml format
- Parameter:
data – OrderedDict to convert
- Rückgabe:
yaml formated data
- lib.item_conversion.is_ruamelyaml_installed()[Quellcode]
- lib.item_conversion.parse_for_convert(filename=None, conf_code=None, config=None)[Quellcode]
- lib.item_conversion.yaml_save(filename, data)[Quellcode]
*Converter Special *
Save contents of an OrderedDict structure to a yaml file
- Parameter:
filename – name of the yaml file to save to
data – OrderedDict to save