section_adaptors

Full name: ase2sprkkr.common.section_adaptors

Module class hierarchy

Inheritance diagram of ase2sprkkr.common.section_adaptors.MergeSectionAdaptor, ase2sprkkr.common.section_adaptors.MergeSectionDefinitionAdaptor, ase2sprkkr.common.section_adaptors.SectionAdaptor

Description

When the data are validated, there can be need for merge two data sources: the old section and the newly set data. This classes handles the issue.

Classes

MergeSectionAdaptor(values, section)

This class returns a read-only dict-like class that merge values from a dict (e.g. newly parsed data) and from the a section.

MergeSectionDefinitionAdaptor(values, definition)

This class returns a read-only dict-like class that merge values from a dict (e.g. newly parsed data) and from the definition of a section.

SectionAdaptor(container)

This class wraps a container to behave as a read-only dict with some other "addons" It is used during validation of a container.