version 1.4, 2003/12/04 20:49:44
|
version 1.5, 2003/12/05 13:32:29
|
Line 43 class ImageDigilib(SimpleItem,Persistent
|
Line 43 class ImageDigilib(SimpleItem,Persistent
|
f.write(filedata) |
f.write(filedata) |
f.close() |
f.close() |
os.chmod(filename,0644) |
os.chmod(filename,0644) |
os.popen("ssh nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/small 100 &"% self.ImageViewerPath) |
os.popen("ssh nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/small 100 &"% self.ImageStoragePath) |
|
|
|
|
|
|
Line 138 class ImageCollection(Folder, Persistent
|
Line 138 class ImageCollection(Folder, Persistent
|
def xmlinput(self,url): |
def xmlinput(self,url): |
"""Anzeige von ausgewaehlten thumbs""" |
"""Anzeige von ausgewaehlten thumbs""" |
#return url |
#return url |
xmldoc=urllib.urlopen(url).read() |
|
|
|
|
url=urllib.unquote(url) |
|
xmldoc=urllib.urlopen(url).read() |
|
#print url |
dom=xml.dom.minidom.parseString(xmldoc) |
dom=xml.dom.minidom.parseString(xmldoc) |
|
|
images=dom.getElementsByTagName('imagename') |
images=dom.getElementsByTagName('imagename') |
Line 203 class ImageCollection(Folder, Persistent
|
Line 205 class ImageCollection(Folder, Persistent
|
#print ret |
#print ret |
#pt=PageTemplateFile('Products/ImageArchive/out.zpt').__of__(self) |
#pt=PageTemplateFile('Products/ImageArchive/out.zpt').__of__(self) |
#print self.ImageStoragePath |
#print self.ImageStoragePath |
os.popen("ssh nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/small 100 &"% self.ImageViewerPath) |
os.popen("ssh nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/small 100 &"% self.ImageStoragePath) |
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |
|
|
def ImportFiles(self,RESPONSE=None): |
def ImportFiles(self,RESPONSE=None): |
Line 228 class ImageCollection(Folder, Persistent
|
Line 230 class ImageCollection(Folder, Persistent
|
#print ret |
#print ret |
#pt=PageTemplateFile('Products/ImageArchive/out.zpt').__of__(self) |
#pt=PageTemplateFile('Products/ImageArchive/out.zpt').__of__(self) |
#print self.ImageStoragePath |
#print self.ImageStoragePath |
os.popen("ssh nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/small 100 &"% self.ImageViewerPath) |
print os.popen("ssh nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/small 100 &"% self.ImageStoragePath) |
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |
|
|
def ImageCollection_config(self): |
def ImageCollection_config(self): |