--- ImageArchive/ImageArchive.py 2004/03/15 17:11:43 1.19
+++ ImageArchive/ImageArchive.py 2004/06/25 12:49:01 1.22
@@ -74,7 +74,10 @@ class ImageDigilib(Folder,Persistent,Imp
f=open(filename,"w")
f.write(filedata)
f.close()
- os.chmod(filename,0644)
+ try:
+ os.chmod(filename,0644)
+ except:
+ """hack"""
os.popen("ssh nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/small 100 &"% self.ImageViewerPath)
@@ -83,7 +86,7 @@ class ImageDigilib(Folder,Persistent,Imp
def download(self):
"""download"""
- path="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?fn="+self.ImageViewerPath+"/"+self.filename+"&mo=rawfile,highres"
+ path="http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?fn="+self.ImageViewerPath+"/"+self.filename+"&mo=rawfile,hires"
#self.REQUEST.SESSION['string']=""% path
#pt=PageTemplateFile('Products/ImageArchive/thumb.zpt').__of__(self)
return self.REQUEST.RESPONSE.redirect(path)
@@ -110,7 +113,7 @@ class ImageDigilib(Folder,Persistent,Imp
"""show image"""
#DEVELOP: take first one for server
- path="http://nausikaa2.rz-berlin.mpg.de:18080/digitallibrary/digilib.jsp?lv=1&fn="+self.ImageViewerPath+"/"+self.filename
+ path="http://content.mpiwg-berlin.mpg.de/zogilib_images?lv=2&fn="+self.ImageViewerPath+"/"+self.filename
#path="http://localhost:8080/mpiwg/online/"+self.ImageViewerPath+"/"+self.filename
#self.REQUEST.SESSION['string']=""% path
@@ -534,15 +537,15 @@ class ImageCollection(Folder, Persistent
try:
rows=int(REQUEST.cookies["ImageViewerRows"])
except:
- rows=None
+ rows=6
else:
- rows=None
+ rows=6
if REQUEST.cookies.has_key("ImageViewerCols"):
#print "COLS",REQUEST.cookies["ImageViewerCols"]
cols=int(REQUEST.cookies["ImageViewerCols"])
else:
- cols=3
+ cols=2
idsnumber=len(self.show_thumbs())
if rows:
@@ -661,11 +664,16 @@ def manage_AddImageCollection(self,id,ti
class ImageCollectionIFrame(ImageCollection):
- """Class für Collection set als IFrame"""
+ """Class fuer Collection set als IFrame"""
meta_type="ImageCollectionIFrame"
label=ImageCollection.title
+ def rotate(self,angle,url,RESPONSE):
+ """rotate"""
+
+ RESPONSE.redirect("javascript:document.domain='mpg.de';parent.iframe.right.rotation(%i)"%int(angle))
+ RESPONSE.redirect(url)
def request(self):
"""request"""
return self.REQUEST