summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2010-06-22 14:35:08 +0200
committerThorsten Behrens <tbehrens@novell.com>2010-06-22 14:35:08 +0200
commit5de254c8602a381ac17a22ba4abccea001ea58c2 (patch)
treec28e5dd85b1c2a0cba8e1188eb64bd6f81965593
parentd29d4575b2d47e063c09de168bec164115b359de (diff)
More work in progressmoremorewip
-rw-r--r--examples/ooxml-strict/dumpsample.py1
-rw-r--r--examples/ooxml-strict/helloworld.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/ooxml-strict/dumpsample.py b/examples/ooxml-strict/dumpsample.py
index f0cf8cf..1316a5e 100644
--- a/examples/ooxml-strict/dumpsample.py
+++ b/examples/ooxml-strict/dumpsample.py
@@ -32,6 +32,7 @@ else:
iteration=1
for (fragment, mimetype, schema, reltype) in package.files(worklist.mimetypes):
+ print fragment
saxer = pyxb.binding.saxer.make_parser(location_base=fragment)
handler = saxer.getContentHandler()
saxer.parse(StringIO.StringIO(package.read(fragment)))
diff --git a/examples/ooxml-strict/helloworld.py b/examples/ooxml-strict/helloworld.py
index 792922a..04db461 100644
--- a/examples/ooxml-strict/helloworld.py
+++ b/examples/ooxml-strict/helloworld.py
@@ -16,7 +16,7 @@ import re
from opc import ALL_OOXML as ALL_OOXML
# use default list of xml mimetypes in opc
-mimetypes = ALL_OOXML
+mimetypes = ["application/vnd.openxmlformats-officedocument.theme+xml"]
# always iterate once over a matched element
iterations = lambda i: 1