Skip to content
Snippets Groups Projects
Commit a37c5d80 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

DOC: added a new keyword role and some missing documentation

parent 7d0f66d2
No related branches found
No related tags found
2 merge requests!39Release 0.4.0,!30F extend yaml model
Pipeline #19160 passed
......@@ -35,8 +35,10 @@ KEYWORDS = ["parent", # TODO: can we remove that, see: #36
"suggested_properties",
"inherit_from_recommended",
"inherit_from_suggested",
"inherit_from_obligatory", ]
"inherit_from_obligatory",
"role", ]
# TODO: check whether it's really ignored
# These KEYWORDS are not forbidden as properties, but merely ignored.
KEYWORDS_IGNORED = [
"unit",
......@@ -109,6 +111,10 @@ def parse_model_from_string(string):
class Parser(object):
def __init__(self):
"""
Initialize an empty parer object and initialize
the dictionary of entities and the list of treated elements.
"""
self.model = {}
self.treated = []
......@@ -233,6 +239,8 @@ class Parser(object):
""" adds names of Properties and RecordTypes to the model dictionary
Properties are also initialized.
name is the key of the yaml element and definition the value.
"""
if name == "__line__":
......
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