version 1.3, 2006/10/04 17:50:17
|
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 22 class externalVersionedFileFolder(Folder
|
Line 25 class externalVersionedFileFolder(Folder
|
meta_type = "externalVersionedFileFolder" |
meta_type = "externalVersionedFileFolder" |
|
|
security= ClassSecurityInfo() |
security= ClassSecurityInfo() |
securityeclareProtected('AUTHENTICATED_USER','addFileForm') |
security.declareProtected('AUTHENTICATED_USER','addFileForm') |
|
|
manage_options = Folder.manage_options+( |
manage_options = Folder.manage_options+( |
{'label':'Generate Index.html','action':'generateIndexHTML'}, |
{'label':'Generate Index.html','action':'generateIndexHTML'}, |
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: |