|
From: <fri...@us...> - 2010-05-19 13:23:44
|
Revision: 10095
http://zaf.svn.sourceforge.net/zaf/?rev=10095&view=rev
Author: friedelwolff
Date: 2010-05-19 13:23:38 +0000 (Wed, 19 May 2010)
Log Message:
-----------
Update to newest format needed by OpenOffice.org 3.2.1. META-INF/ must be in upper case. More information in OOo issue 91071
Modified Paths:
--------------
trunk/dict/utils/csv2acor.py
Modified: trunk/dict/utils/csv2acor.py
===================================================================
--- trunk/dict/utils/csv2acor.py 2010-05-18 14:47:52 UTC (rev 10094)
+++ trunk/dict/utils/csv2acor.py 2010-05-19 13:23:38 UTC (rev 10095)
@@ -9,13 +9,14 @@
DocumentList = 'DocumentList.csv'
manifest = """<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
-<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
+<manifest:manifest>
<manifest:file-entry manifest:media-type="" manifest:full-path="/"/>
+ <manifest:file-entry manifest:media-type="" manifest:full-path="META-INF/"/>
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="DocumentList.xml"/>
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="WordExceptList.xml"/>
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="SentenceExceptList.xml"/>
-</manifest:manifest>"""
+</manifest:manifest>
+"""
fileheader = """<?xml version="1.0" encoding="UTF-8"?>
@@ -48,10 +49,10 @@
if os.path.exists(SentenceExceptList) and os.path.exists(WordExceptList) and os.path.exists(DocumentList):
if not (os.path.exists(tempdir)):
os.mkdir(tempdir, 0777)
- if not (os.path.exists(tempdir+'/Meta-inf/')):
- os.mkdir(tempdir+'/Meta-inf/', 0777)
+ if not (os.path.exists(tempdir+'/META-INF/')):
+ os.mkdir(tempdir+'/META-INF/', 0777)
- manifestfile = open(os.path.join(tempdir+'/Meta-inf/', 'manifest.xml'), 'wb')
+ manifestfile = open(os.path.join(tempdir+'/META-INF/', 'manifest.xml'), 'wb')
manifestfile.write(manifest)
manifestfile.close()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|