--- ImageArchive/ImageArchive.py 2004/11/17 15:38:23 1.36 +++ ImageArchive/ImageArchive.py 2004/11/17 15:56:14 1.37 @@ -268,7 +268,7 @@ class ImageCollection(Folder, Persistent if local: if version=="working": - sourcePath="/mpiwg/temp/online/scaled/small/"+self.ImageViewerPath+"/"+id[0] + sourcePath="/mpiwg/temp/online/scaled/small/"+self.ImageViewerPath+"/"+os.path.splitext(id[0])[0]+".jpg" else: sourcePath="/mpiwg/online/"+self.ImageViewerPath+"/"+id[0] targetPath=tmpPath+"/"+filename @@ -562,8 +562,13 @@ class ImageCollection(Folder, Persistent except: nop=0 if not text=="": - rc.append((str(text),id,nop)) - fnIds[str(text)]=(id,nop) + try: + rc.append((str(text),id,nop)) + fnIds[str(text)]=(id,nop) + except: + rc.append((repr(text),id,nop)) + fnIds[repr(text)]=(id,nop) + rc.sort() self.REQUEST.SESSION['filenames']=rc self.REQUEST.SESSION['filenamesIds']=fnIds