--- OSAS/OSA_system/OSAS_Root.py 2004/05/08 21:09:11 1.8 +++ OSAS/OSA_system/OSAS_Root.py 2004/05/10 15:54:40 1.9 @@ -4,6 +4,7 @@ from OFS.Folder import Folder from Products.PageTemplates.PageTemplateFile import PageTemplateFile from Products.PageTemplates.PageTemplate import PageTemplate import urllib +import re class OSAS_Root(Folder,Implicit): """Implicit Folder of the Storage Systems""" @@ -52,8 +53,12 @@ class OSAS_Root(Folder,Implicit): def downloadExternalXML(self,index_meta_url,xml_url): """lade xml file""" xmlneu=urllib.urlopen(xml_url).read() - path=re.sub(self.REQUEST['SERVER_URL'],'',index_meta_url) - fh=file(path) + + path=re.sub(self.REQUEST['SERVER_URL'],'',index_meta_url) + path=re.sub('http://foxridge.mpiwg-berlin.mpg.de:8080','',path) # falls foxridge als server + path=re.sub('http://foxridge.mpiwg-berlin.mpg.de','',path) # falls foxridge als server + + fh=open(path,'w') fh.write(xmlneu) fh.close() return "ok"