--- versionedFile/extVersionedFile.py 2006/10/04 07:35:27 1.1 +++ versionedFile/extVersionedFile.py 2006/10/11 10:00:27 1.3 @@ -1,3 +1,8 @@ +"""actual version of the versioned file folder with external filestorage, +using the ExtFile Product, this version replaces externaVersionedFile.py +DW 11.10.2006 +""" + from OFS.Folder import Folder from OFS.Image import File from OFS.Image import cookId @@ -71,7 +76,7 @@ class generateDownloadZip: savePath=os.path.join(tmpPath,lastV.title) fh=file(savePath,"w") - fh.write(lastV.data) + fh.write(lastV.getData()) fh.close() self.response+="

2. step: creating the downloadable file

" @@ -861,7 +866,7 @@ class extVersionedFile(CatalogAware,Fold def diff(self,data): """differenz between lastversion and data""" d=Differ() - tmp=self.getLastVersion().data + tmp=self.getLastVersion().getData() #print "XX",data,tmp try: l=list(d.compare(data.splitlines(1),tmp.splitlines(1)))