- Timestamp:
- Oct 22, 2019, 2:30:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ipp-259_genericise_backups/tools/backups/utils/config_parse_helper.py
r40949 r40962 1 1 from enum import Enum 2 2 from configparser import ConfigParser 3 from backups.utils.errors import ConfigError, ValidationError 3 4 from utils.errors import ConfigError, ValidationError 4 5 5 6 … … 139 140 parsed_items[csl.key] = splitup 140 141 else: 142 141 143 raise ConfigError(config, f"ConfigError: Don't know how to process special schema {csl.special_processing}") 142 144 else: … … 150 152 151 153 152 # def parse_config(config: ConfigParser(), schema: ConfigSchemaSection) -> dict:153 # return _parse_config_section(config, schema)154 155 154 def _parse_config(config: ConfigParser(), schema: ConfigSchema) -> dict: 156 155 parsed_items = {} 157 print(config)158 for c in config:159 print(c)160 156 161 157 for css_name in schema.sections: 162 print(css_name)163 158 css = schema.get_schema_section(css_name) 164 print(css)165 159 166 160 # if config.has_section(css_name):
Note:
See TracChangeset
for help on using the changeset viewer.
