Diff for /OSAS/OSA_system/OSAS_show.py between versions 1.20 and 1.22

version 1.20, 2004/04/15 20:48:01 version 1.22, 2004/04/17 15:09:09
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 231  class OSAS_StoreOnline(SimpleItem): Line 231  class OSAS_StoreOnline(SimpleItem):
             node=dom.getElementsByTagName('texttool')[0] #getNode              node=dom.getElementsByTagName('texttool')[0] #getNode
             subnode=node.getElementsByTagName(name)[0]              subnode=node.getElementsByTagName(name)[0]
                           
               # bei text wird nur der Folder gebraucht
               if name=="text":
                   splitted=getText(subnode.childNodes).split("/")
                   return splitted[len(splitted)-2]
               else:
             return getText(subnode.childNodes)              return getText(subnode.childNodes)
         except:          except:
             return default              return default
Line 258  class OSAS_StoreOnline(SimpleItem): Line 263  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)

Removed from v.1.20  
changed lines
  Added in v.1.22


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>