version 1.4, 2006/10/04 17:52:41
|
version 1.6, 2007/02/02 14:45:17
|
Line 1
|
Line 1
|
|
"""this implementation of the is not supported anymore, it is replace by extVersionedFile |
|
DW 11.10.2006""" |
|
|
from Products.ExternalFile.FileUtils import copy_file |
from Products.ExternalFile.FileUtils import copy_file |
from Products.ExternalFile.ExternalFile import ExternalFile |
from Products.ExternalFile.ExternalFile import ExternalFile |
from OFS.Folder import Folder |
from OFS.Folder import Folder |
Line 483 class externalVersionedFile(Folder):
|
Line 486 class externalVersionedFile(Folder):
|
|
|
id="V%i"%self.getVersion()+"_"+self.title |
id="V%i"%self.getVersion()+"_"+self.title |
manage_addExternalVersionedFileObject(self,id,vC,author,file,"V%i"%self.getVersion()+"_"+self.title,precondition, content_type) |
manage_addExternalVersionedFileObject(self,id,vC,author,file,"V%i"%self.getVersion()+"_"+self.title,precondition, content_type) |
print self.ZopeFind(self,obj_ids=[id])[0] |
#print self.ZopeFind(self,obj_ids=[id])[0] |
objs=self.ZopeFind(self,obj_ids=[id])[0][1].setVersionNumber(int(self.getVersion())) |
objs=self.ZopeFind(self,obj_ids=[id])[0][1].setVersionNumber(int(self.getVersion())) |
|
|
if RESPONSE: |
if RESPONSE: |