MCPcopy Create free account
hub / github.com/scanny/python-pptx / load_rels_from_xml

Method load_rels_from_xml

src/pptx/opc/package.py:330–337  ·  view source on GitHub ↗

load _Relationships for this part from `xml_rels`. Part references are resolved using the `parts` dict that maps each partname to the loaded part with that partname. These relationships are loaded from a serialized package and so already have assigned rIds. This method is on

(self, xml_rels: CT_Relationships, parts: dict[PackURI, Part])

Source from the content-addressed store, hash-verified

328 return self._content_type
329
330 def load_rels_from_xml(self, xml_rels: CT_Relationships, parts: dict[PackURI, Part]) -> None:
331 """load _Relationships for this part from `xml_rels`.
332
333 Part references are resolved using the `parts` dict that maps each partname to the loaded
334 part with that partname. These relationships are loaded from a serialized package and so
335 already have assigned rIds. This method is only used during package loading.
336 """
337 self._rels.load_from_xml(self._partname.baseURI, xml_rels, parts)
338
339 @lazyproperty
340 def package(self) -> Package:

Callers 1

_loadMethod · 0.80

Calls 1

load_from_xmlMethod · 0.80

Tested by

no test coverage detected