MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / _has_author

Method _has_author

docx/scripts/document.py:1174–1179  ·  view source on GitHub ↗

Check if an author already exists in people.xml.

(self, editor, author)

Source from the content-addressed store, hash-verified

1172 return False
1173
1174 def _has_author(self, editor, author):
1175 """Check if an author already exists in people.xml."""
1176 for person_elem in editor.dom.getElementsByTagName("w15:person"):
1177 if person_elem.getAttribute("w15:author") == author:
1178 return True
1179 return False
1180
1181 def _add_author_to_people(self, author):
1182 """Add author to people.xml (called during initialization)."""

Callers 1

_add_author_to_peopleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected