version 1.20, 2004/04/15 20:48:01
|
version 1.21, 2004/04/15 21:30:42
|
Line 106 class OSAS_StoreOnline(SimpleItem):
|
Line 106 class OSAS_StoreOnline(SimpleItem):
|
def rescaleThumbs(self,path): |
def rescaleThumbs(self,path): |
"""rescale thumbs of images in 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'] |
self.REQUEST.SESSION['path']=self.REQUEST['path'] |
#return self.REQUEST.RESPONSE.redirect(self.REQUEST['URL1']) |
#return self.REQUEST.RESPONSE.redirect(self.REQUEST['URL1']) |
Line 258 class OSAS_StoreOnline(SimpleItem):
|
Line 258 class OSAS_StoreOnline(SimpleItem):
|
|
|
|
|
|
|
def changeTemplates(self,path): |
def changeTemplates(self,path,RESPONSE=None): |
"""Andere alle Eintraege in index.meta""" |
"""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) |
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) |
InitializeClass(OSAS_StoreOnline) |