--- ImageArchive/ImageArchive.py 2005/10/25 20:03:31 1.70 +++ ImageArchive/ImageArchive.py 2005/10/26 14:57:59 1.71 @@ -1425,7 +1425,7 @@ class ImageCollection(Folder, Persistent """sets default columns and rows""" self.defaultcols = cols self.defaultrows = rows - + def getColTimesRow(self,showall='No'): """coltimesrow""" @@ -1435,15 +1435,16 @@ class ImageCollection(Folder, Persistent try: rows=int(REQUEST.cookies["ImageViewerRows"]) except: - rows=self.defaultrows + rows=getattr(self,'defaultrows',6) else: - rows=self.defaultrows + rows=getattr(self,'defaultrows',6) if REQUEST.cookies.has_key("ImageViewerCols"): #print "COLS",REQUEST.cookies["ImageViewerCols"] cols=int(REQUEST.cookies["ImageViewerCols"]) else: - cols=self.defaultcols + cols=getattr(self,'defaultcols',3) + idsnumber=len(self.show_thumbs()) if rows: