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

added doc and support for simple persons

parent 53db88e5
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,18 @@ def _add_header(filename):
def parse_responsibles(header):
"""
Extract the responsible person(s) from the yaml header.
If field responsible is a list every entry from that list will be added as a person.
Currently only the format <Firstname> <Lastname> <*> is supported.
If it is a simple string, it is added as the only person.
"""
people = []
if type(header["responsible"]) == list:
resplist = header["responsible"]
else:
resplist = [header["responsible"]]
for person in header["responsible"]:
firstname = person.split(" ")[0]
lastname = person.split(" ")[1]
......
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