--- ImageArchive/ImageArchive.py 2008/08/18 13:27:42 1.105 +++ ImageArchive/ImageArchive.py 2010/06/15 14:08:12 1.108 @@ -326,7 +326,7 @@ class ImageDigilib(Folder,Persistent,Imp def isAccessible(self): """gives true if obejct is accessible taking the rights of the user into account""" - logTemp("isaccessible") + logTime("isaccessible") #TODO: implement rights, currently true if external and false if internal, and true if user has role authenticated username=self.REQUEST['AUTHENTICATED_USER'] @@ -602,6 +602,7 @@ class ImageDigilib(Folder,Persistent,Imp newImagePath=oldNameBase+uploadFileExt f=open(newImagePath,"w") # if we wanted to have filename=id we should do it here! + logging.error("saving:"+newImagePath) f.write(filedata) f.close() try: @@ -615,7 +616,7 @@ class ImageDigilib(Folder,Persistent,Imp #scale standard self.scaleWorkingVersions() - self.scaleToJpg() + #self.scaleToJpg() if _rename: self.renameImage(_fileupload.filename) @@ -1291,8 +1292,8 @@ class ImageCollection(OrderedFolder, Per if os.path.isdir(os.path.join(self.getImageStoragePath(),file)): ImageStoragePath=os.path.join(self.getImageStoragePath(),file) imageViewerPath=os.path.join(self.ImageViewerPath,file) - manage_AddImageCollection(self,file,file,self.getImageStoragePath(),imageViewerPath,self.defaultMetaString) - + #manage_AddImageCollection(self,file,file,self.getImageStoragePath(),imageViewerPath,self.defaultMetaString) + manage_AddImageCollection(self,file,file,imageViewerPath,self.defaultMetaString,self.destBasis,self.srcBasis,self.serverPath) obj=getattr(self,file) obj.ImportStructure() else: