--- OSAS/OSA_system/OSAS_show.py 2004/04/15 20:48:01 1.20 +++ OSAS/OSA_system/OSAS_show.py 2004/04/15 21:30:42 1.21 @@ -106,7 +106,7 @@ class OSAS_StoreOnline(SimpleItem): def rescaleThumbs(self,path): """rescale thumbs of images in path""" - os.popen("ssh nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/thumb 90 --replace >> /tmp/sc.out &"% re.sub('/mpiwg/online/','',self.REQUEST['path'])) + os.popen("ssh archive@nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/thumb 90 --replace >> /tmp/sc.out &"% re.sub('/mpiwg/online/','',self.REQUEST['path'])) self.REQUEST.SESSION['path']=self.REQUEST['path'] #return self.REQUEST.RESPONSE.redirect(self.REQUEST['URL1']) @@ -258,14 +258,12 @@ class OSAS_StoreOnline(SimpleItem): - def changeTemplates(self,path): + def changeTemplates(self,path,RESPONSE=None): """Andere alle Eintraege in index.meta""" - #os.path.walk(path,OSAS_helpers.changeIndexMeta,startpage,xslt,thumbtemplate,topbar,digiLibTemplate) - print self.REQUEST.form - - os.path.walk(path,OSAS_helpers.changeIndexMeta,self.REQUEST.form) - + if RESPONSE is not None: + RESPONSE.redirect(self.REQUEST['URL1']+"?path="+self.REQUEST.SESSION['path']) + InitializeClass(OSAS_StoreOnline)