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

Method target_ref

src/pptx/opc/package.py:752–762  ·  view source on GitHub ↗

str reference to relationship target. For internal relationships this is the relative partname, suitable for serialization purposes. For an external relationship it is typically a URL.

(self)

Source from the content-addressed store, hash-verified

750
751 @lazyproperty
752 def target_ref(self) -> str:
753 """str reference to relationship target.
754
755 For internal relationships this is the relative partname, suitable for serialization
756 purposes. For an external relationship it is typically a URL.
757 """
758 if self.is_external:
759 assert isinstance(self._target, str)
760 return self._target
761
762 return self.target_partname.relative_ref(self._base_uri)

Callers 3

addressMethod · 0.45
addressMethod · 0.45

Calls 1

relative_refMethod · 0.80

Tested by 1