version 1.33, 2009/06/24 11:24:05
|
version 1.34, 2009/08/31 14:07:35
|
Line 530 class extVersionedFileFolder(Folder,ECHO
|
Line 530 class extVersionedFileFolder(Folder,ECHO
|
vf = self._newVersionedFile(id,title=id) |
vf = self._newVersionedFile(id,title=id) |
logging.error("addFile id=%s vf=%s of %s"%(repr(id),repr(vf),repr(self))) |
logging.error("addFile id=%s vf=%s of %s"%(repr(id),repr(vf),repr(self))) |
# add its content (and don't index) |
# add its content (and don't index) |
|
self._setObject(id,vf) |
|
vf=getattr(self,id) |
|
|
obj=vf.addContentObject(id,vC,author=author,file=file,content_type=content_type,from_tmp=isRealFile,index=False) |
obj=vf.addContentObject(id,vC,author=author,file=file,content_type=content_type,from_tmp=isRealFile,index=False) |
# add file to this folder (this should do the indexing) |
# add file to this folder (this should do the indexing) |
self._setObject(id,vf) |
#self._setObject(id,vf) |
|
|
try: |
try: |
self.REQUEST.SESSION['objID']=vf.getId() |
self.REQUEST.SESSION['objID']=vf.getId() |