Check if an author already exists in people.xml.
(self, editor, author)
| 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).""" |
no outgoing calls
no test coverage detected