Пример #1
0
 def __init__( self, odt='', type='odt' ):
     self.document = OfficeDocument.createDocument( type )
     if odt != '':
         #copy filt to temporary document, becasuse two webservice users using the same file causes problems
         os.path.exists( odt )
         self.origionalPath = odt 
         self.documentPath = self._getTempFile( type )
         shutil.copyfile( odt, self.documentPath )
         self.document.open( self.documentPath )
         
         pyMailMerge.documentsOpen[ self.documentPath ] = self.documentPath