[Python-modules-commits] [python-odf] 80/118: Étienne Bersac requested to be able to create a OpenDocumentTextMaster document. How does a master document create links to other documents?

Wolfgang Borgert debacle at moszumanska.debian.org
Fri Oct 3 21:27:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to reference refs/remotes/upstream/master
in repository python-odf.

commit 95f721858efdd7b3aa15b4acf68e9f906c806adc
Author: Søren Roug <soren.roug at eea.europa.eu>
Date:   Fri Apr 9 14:55:09 2010 +0000

    Étienne Bersac requested to be able to create a OpenDocumentTextMaster document.
    How does a master document create links to other documents?
---
 odf/opendocument.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/odf/opendocument.py b/odf/opendocument.py
index 9fd1622..6907602 100644
--- a/odf/opendocument.py
+++ b/odf/opendocument.py
@@ -552,6 +552,11 @@ def OpenDocumentText():
     doc.body.addElement(doc.text)
     return doc
 
+def OpenDocumentTextMaster():
+    doc = OpenDocument('application/vnd.oasis.opendocument.text-master')
+    doc.text = Text()
+    doc.body.addElement(doc.text)
+    return doc
 
 def load(odffile):
     from load import LoadParser

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-odf.git



More information about the Python-modules-commits mailing list