version 1.25, 2004/07/23 17:37:55
|
version 1.29, 2005/01/21 15:54:28
|
Line 54 class OSAS_ShowOnline(SimpleItem):
|
Line 54 class OSAS_ShowOnline(SimpleItem):
|
return hasMetafile(path) |
return hasMetafile(path) |
|
|
def getMetafile(self,path): |
def getMetafile(self,path): |
return getMetafile(path) |
|
|
return getMetafile(path).decode('utf-8') |
|
|
def toggle_view(self,path,file): |
def toggle_view(self,path,file): |
"""Oeffnen bzw. schließen der Subfolders""" |
"""Oeffnen bzw. schließen der Subfolders""" |
Line 107 class OSAS_StoreOnline(SimpleItem):
|
Line 108 class OSAS_StoreOnline(SimpleItem):
|
"""rescale thumbs of images in path""" |
"""rescale thumbs of images in path""" |
|
|
dlpath = re.sub('/mpiwg/online/','',self.REQUEST['path']) |
dlpath = re.sub('/mpiwg/online/','',self.REQUEST['path']) |
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 -replace >> /tmp/sc.out &"% ) |
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 --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'] |
Line 142 class OSAS_StoreOnline(SimpleItem):
|
Line 143 class OSAS_StoreOnline(SimpleItem):
|
return hasMetafile(path) |
return hasMetafile(path) |
|
|
def getMetafile(self,path): |
def getMetafile(self,path): |
return getMetafile(path) |
|
|
return getMetafile(path).decode('utf-8') |
|
|
def toggle_view(self,path,file): |
def toggle_view(self,path,file): |
"""Oeffnen bzw. schließen der Subfolders""" |
"""Oeffnen bzw. schließen der Subfolders""" |
Line 200 class OSAS_StoreOnline(SimpleItem):
|
Line 202 class OSAS_StoreOnline(SimpleItem):
|
"""Editiere das Index Metafile""" |
"""Editiere das Index Metafile""" |
try: |
try: |
dom=xml.dom.minidom.parse(path+"/index.meta") |
dom=xml.dom.minidom.parse(path+"/index.meta") |
indexmeta=dom.toxml() |
indexmeta=dom.toxml(encoding='UTF-8') |
except: |
except: |
indexmeta="" |
indexmeta="" |
|
|
Line 963 def getBib(nodelist):
|
Line 965 def getBib(nodelist):
|
|
|
if node.nodeType == node.ELEMENT_NODE: |
if node.nodeType == node.ELEMENT_NODE: |
"""nothing""" |
"""nothing""" |
|
|
rc = rc+"<tr><td valign='right'>"+str(node.nodeName)+":</td><td> "+getText(node.childNodes)+"</td></tr>" |
rc = rc+"<tr><td valign='right'>"+str(node.nodeName)+":</td><td> "+getText(node.childNodes)+"</td></tr>" |
|
|
#print rc |
#print rc |
return rc+"</table>" |
return rc+"</table>" |
|
|
Line 1022 def getMetafile(path):
|
Line 1026 def getMetafile(path):
|
|
|
# html=html.encode('utf-8','replace')+getBib(bib.childNodes).encode('utf-8','replace') |
# html=html.encode('utf-8','replace')+getBib(bib.childNodes).encode('utf-8','replace') |
|
|
return html |
return html.encode('utf-8') |
|
|
def hasMetafile(path): |
def hasMetafile(path): |
"""get index.meta""" |
"""get index.meta""" |