duplicate zoom node to Gui and add doc tool module

This commit is contained in:
jriegel
2012-01-27 11:20:15 +01:00
committed by Stefan Tröger
parent 23285e6fd2
commit 79cb8362a0
3 changed files with 215 additions and 2 deletions

View File

@@ -3,15 +3,16 @@
# (c) 2007 Juergen Riegel LGPL
import zipfile
from xml.dom.minidom import parse, parseString
class Document:
""" Document representation """
def __init__(self,DocFile):
self.FileName = DocFile
print "Parsing: ",DocFile
self.ZFile = zipfile.ZipFile(DocFile,'r')
DStr = self.ZFile.read('Document.xml')
print DStr
self.DDom = parseString(DStr)
def fileInfo(self):
ret = ''