From 9b479955a7c5b0547db8b274d2dfd6d0d6152194 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 1 Dec 2013 21:21:14 +0000 Subject: Read inline images --- mammoth/docx/relationships_xml.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 mammoth/docx/relationships_xml.py (limited to 'mammoth/docx/relationships_xml.py') diff --git a/mammoth/docx/relationships_xml.py b/mammoth/docx/relationships_xml.py new file mode 100644 index 0000000..75069fc --- /dev/null +++ b/mammoth/docx/relationships_xml.py @@ -0,0 +1,10 @@ +class Relationships(object): + def __init__(self, relationships): + self._relationships = relationships + + def __getitem__(self, key): + return self._relationships[key] + +class Relationship(object): + def __init__(self, target): + self.target = target -- cgit v1.2.3