Skip to content
Snippets Groups Projects
Commit b44cad88 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

WIP: Begin create_records function

parent 44527292
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!163F dict heuristic
Pipeline #49139 failed
......@@ -810,6 +810,18 @@ class DictElementConverter(Converter):
raise RuntimeError("Element must be a DictElement.")
return match_name_and_value(self.definition, element.name, element.value)
def create_records(self, values: GeneralStore, records: RecordStore, element: StructureElement):
keys_modified = []
if "record_from_dict" in self.definition and self.definition["record_from_dict"] is not None:
raise NotImplementedError("TODO")
keys_modified.extend(super().create_records(
values=values, records=records, element=element))
return keys_modified
class DictConverter(DictElementConverter):
def __init__(self, *args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment