status["subject"] = topic
author_path = next(path.parent.glob("1=*"), None)
if author_path:
- status["author"] = { "name": author_path.name[2:] }
+ status["creator"] = { "name": author_path.name[2:] }
with author_path.open("r", encoding="utf-8") as text:
- status["author"]["@id"] = text.read().strip()
+ status["creator"]["@id"] = text.read().strip()
title_path = next(path.parent.glob("2=*"), None)
if title_path:
with title_path.open("r", encoding="utf-8") as text:
publishedElt = entryElt.appendChild(doc.createElement("published"))
publishedElt.appendChild(doc.createTextNode(item["created"]))
authorElt = entryElt.appendChild(doc.createElement("author"))
- if "author" in item:
+ if "creator" in item:
nameElt = authorElt.appendChild(doc.createElement("name"))
- nameElt.appendChild(doc.createTextNode(item["author"]["name"]))
+ nameElt.appendChild(doc.createTextNode(item["creator"]["name"]))
uriElt = authorElt.appendChild(doc.createElement("uri"))
- uriElt.appendChild(doc.createTextNode(item["author"]["@id"]))
+ uriElt.appendChild(doc.createTextNode(item["creator"]["@id"]))
else:
nameElt = authorElt.appendChild(doc.createElement("name"))
nameElt.appendChild(doc.createTextNode("Anonymous"))