[pypy-svn] rev 1467 - pypy/trunk/doc/funding/tools

stephan at codespeak.net stephan at codespeak.net
Tue Sep 30 15:31:44 CEST 2003


Author: stephan
Date: Tue Sep 30 15:31:44 2003
New Revision: 1467

Modified:
   pypy/trunk/doc/funding/tools/zipmod.py
Log:
added support for filter stuff

Modified: pypy/trunk/doc/funding/tools/zipmod.py
==============================================================================
--- pypy/trunk/doc/funding/tools/zipmod.py	(original)
+++ pypy/trunk/doc/funding/tools/zipmod.py	Tue Sep 30 15:31:44 2003
@@ -1,6 +1,7 @@
 #! /usr/bin/env python
 
 import os, sys, zipfile
+from format import changeStyle
 
 # s = """..... <text:p text:style-name="P4">:DELETE:BEGIN</text:p><text:p text:style-name="P4"/><table:table table:name="Table3" table:style-name="Table3"><table:table-column table:style-name="Table3.A"/><text:p text:style-name="P4">:DELETE:END</text:p> ----------""" * 2
 
@@ -67,6 +68,12 @@
         zip.write(destPath, fn)
 
 
+def filterAll(txt):
+    txt = changeStyle(txt)
+    txt = filter(txt)
+
+    return txt
+
 if __name__ == '__main__':
     docPath = sys.argv[1]
-    modifyOpenOfficeContent(docPath, 'content.xml', filter)
+    modifyOpenOfficeContent(docPath, 'content.xml', filterAll)


More information about the Pypy-commit mailing list