summaryrefslogtreecommitdiff
path: root/examples/ooxml-strict/helloworld.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ooxml-strict/helloworld.py')
-rw-r--r--examples/ooxml-strict/helloworld.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/ooxml-strict/helloworld.py b/examples/ooxml-strict/helloworld.py
new file mode 100644
index 0000000..792922a
--- /dev/null
+++ b/examples/ooxml-strict/helloworld.py
@@ -0,0 +1,25 @@
+# Copyright 2010, Thorsten Behrens, Novell Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain a
+# copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+import re
+from opc import ALL_OOXML as ALL_OOXML
+
+# use default list of xml mimetypes in opc
+mimetypes = ALL_OOXML
+
+# always iterate once over a matched element
+iterations = lambda i: 1
+
+# always use the same regexp regardless of mimetype
+worklist = lambda i: [re.compile('.*CT_OnOff'), re.compile('.*val.*')]