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

Method __init__

docx/scripts/document.py:59–73  ·  view source on GitHub ↗

Initialize with required RSID and optional author. Args: xml_path: Path to XML file to edit rsid: RSID to automatically apply to new elements author: Author name for tracked changes and comments (default: "Claude") initials: Author initials (d

(
        self, xml_path, rsid: str, author: str = "Claude", initials: str = "C"
    )

Source from the content-addressed store, hash-verified

57 """
58
59 def __init__(
60 self, xml_path, rsid: str, author: str = "Claude", initials: str = "C"
61 ):
62 """Initialize with required RSID and optional author.
63
64 Args:
65 xml_path: Path to XML file to edit
66 rsid: RSID to automatically apply to new elements
67 author: Author name for tracked changes and comments (default: "Claude")
68 initials: Author initials (default: "C")
69 """
70 super().__init__(xml_path)
71 self.rsid = rsid
72 self.author = author
73 self.initials = initials
74
75 def _get_next_change_id(self):
76 """Get the next available change ID by checking all tracked change elements."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected