|
|
| version 1.40, 2005/01/20 13:38:02 | version 1.42, 2005/01/21 15:20:10 |
|---|---|
| Line 14 from Products.PageTemplates.PageTemplate | Line 14 from Products.PageTemplates.PageTemplate |
| from Products.PageTemplates.PageTemplate import PageTemplate | from Products.PageTemplates.PageTemplate import PageTemplate |
| import string | import string |
| import urllib | import urllib |
| import zLOG | |
| import xml.dom.minidom | import xml.dom.minidom |
| from time import localtime,strftime | from time import localtime,strftime |
| from Globals import package_home | from Globals import package_home |
| Line 199 def add6(self): | Line 200 def add6(self): |
| newtemplate=PageTemplateFile('Products/OSA_system/zpt/index_meta').__of__(self) | newtemplate=PageTemplateFile('Products/OSA_system/zpt/index_meta').__of__(self) |
| newtemplate.content_type="text/plain" | newtemplate.content_type="text/plain" |
| renderxml = newtemplate(encode='utf-8') | renderxml = newtemplate(encode='utf-8') |
| if self.REQUEST.SESSION.has_key('no_upload'): | if self.REQUEST.SESSION.has_key('no_upload'): |
| metapath=self.REQUEST.SESSION['path']+"/index.meta" | metapath=self.REQUEST.SESSION['path']+"/index.meta" |
| else: | else: |
| Line 695 def combineTextImage2(self,path): | Line 698 def combineTextImage2(self,path): |
| if self.REQUEST.has_key('image'): # falls bilder | if self.REQUEST.has_key('image'): # falls bilder |
| path=re.sub('//','/',self.REQUEST['path']) # falls '//' im Pfad | path=re.sub('//','/',self.REQUEST['path']) # falls '//' im Pfad |
| dlpath = re.sub('/mpiwg/online/','',path)+"/"+self.REQUEST['image'] | dlpath = re.sub('/mpiwg/online/','',path)+"/"+self.REQUEST['image'] |
| os.popen("ssh archive@nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat -src=/mpiwg/online -dest=/mpiwg/temp/online/scaled/thumb -dir=%s -scaleto=90 -sync >> /tmp/sc.out &"%dlpath ) | |
| #os.popen("ssh archive@nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat.pl %s /mpiwg/temp/online/scaled/thumb 90 >> /tmp/sc.out &"% re.sub('/mpiwg/online/','',self.REQUEST['path']+"/"+self.REQUEST['image'])) | zLOG.LOG('OSas',zLOG.INFO,"ssh archive@nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat -src=/mpiwg/online -dest=/mpiwg/temp/online/scaled/thumb -dir=%s -scaleto=90 -sync >> /tmp/sc.out &"%dlpath ) |
| ret=os.popen("ssh archive@nausikaa2.rz-berlin.mpg.de /usr/local/mpiwg/scripts/scaleomat -src=/mpiwg/online -dest=/mpiwg/temp/online/scaled/thumb -dir=%s -scaleto=90 -sync >> /tmp/sc.out &"%dlpath ).read() | |
| zLOG.LOG('OSAS (combine)',zLOG.INFO,ret) | |
| else: # falls keine Bilder (bug in reg.cgi info file ersetzen) | else: # falls keine Bilder (bug in reg.cgi info file ersetzen) |
| f=file("/tmp/tmp_info.xml","w") | f=file("/tmp/tmp_info.xml","w") |