(conf_data)
Validate a chapter by validating all its modules
Validate a chapter by validating all its modules
Validate a chapter by validating all its modules
def validate_chapter(conf_data):
    """Validate a chapter by validating all its modules"""
    chapters = conf_data['chapters']
    for chapter in chapters:
        chapter_obj = chapters[chapter]
        for module in chapter_obj:
            module_obj = chapter_obj[module]
            if isinstance(module_obj, dict):
                validate_module(module, module_obj, conf_data)
def validate_chapter ( conf_data ) : chapters = conf_data [ 'chapters' ] for chapter in chapters : chapter_obj = chapters [ chapter ] for module in chapter_obj : module_obj = chapter_obj [ module ] if isinstance ( module_obj , dict ) : validate_module ( module , module_obj , conf_data )