Add a child ` ` element with attributes set as specified.
(
self, rId: str, reltype: str, target: str, is_external: bool = False
)
| 129 | relationship = ZeroOrMore("pr:Relationship") |
| 130 | |
| 131 | def add_rel( |
| 132 | self, rId: str, reltype: str, target: str, is_external: bool = False |
| 133 | ) -> CT_Relationship: |
| 134 | """Add a child `<Relationship>` element with attributes set as specified.""" |
| 135 | target_mode = RTM.EXTERNAL if is_external else RTM.INTERNAL |
| 136 | relationship = CT_Relationship.new(rId, reltype, target, target_mode) |
| 137 | return self._insert_relationship(relationship) |
| 138 | |
| 139 | @classmethod |
| 140 | def new(cls) -> CT_Relationships: |