version 1.49, 2007/01/26 11:35:04
|
version 1.51, 2008/04/15 14:25:32
|
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 logging |
|
|
|
#ersetzt logging |
|
def logger(txt,method,txt2): |
|
"""logging""" |
|
logging.info(txt+ txt2) |
|
|
|
|
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 700 def combineTextImage2(self,path):
|
Line 707 def combineTextImage2(self,path):
|
|
|
|
|
|
|
urllib.urlopen("http://nausikaa2.rz-berlin.mpg.de:86/cgi-bin/toc/admin/reg.cgi?path=%s"%path).readlines() |
# urllib.urlopen("http://nausikaa2.rz-berlin.mpg.de:86/cgi-bin/toc/admin/reg.cgi?path=%s"%path).readlines() |
|
# |
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'] |
|
# |
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=100 -sync >> /tmp/sc.out &"%dlpath ) |
# logger('OSas',logging.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=100 -sync >> /tmp/sc.out &"%dlpath ).read() |
# 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) |
# logger('OSAS (combine)',logging.INFO,ret) |
|
|
|
|
|
|