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

Method _has_relationship

docx/scripts/document.py:1160–1165  ·  view source on GitHub ↗

Check if a relationship with given target exists.

(self, editor, target)

Source from the content-addressed store, hash-verified

1158 # ==================== Private: Metadata Updates ====================
1159
1160 def _has_relationship(self, editor, target):
1161 """Check if a relationship with given target exists."""
1162 for rel_elem in editor.dom.getElementsByTagName("Relationship"):
1163 if rel_elem.getAttribute("Target") == target:
1164 return True
1165 return False
1166
1167 def _has_override(self, editor, part_name):
1168 """Check if an override with given part name exists."""

Calls

no outgoing calls

Tested by

no test coverage detected