status["subject"] = topic
author_path = next(path.parent.glob("1=*"), None)
if author_path:
status["subject"] = topic
author_path = next(path.parent.glob("1=*"), None)
if author_path:
title_path = next(path.parent.glob("2=*"), None)
if title_path:
with title_path.open("r", encoding="utf-8") as text:
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"))
publishedElt = entryElt.appendChild(doc.createElement("published"))
publishedElt.appendChild(doc.createTextNode(item["created"]))
authorElt = entryElt.appendChild(doc.createElement("author"))
else:
nameElt = authorElt.appendChild(doc.createElement("name"))
nameElt.appendChild(doc.createTextNode("Anonymous"))
else:
nameElt = authorElt.appendChild(doc.createElement("name"))
nameElt.appendChild(doc.createTextNode("Anonymous"))