|
|
| version 1.8, 2004/05/08 21:09:11 | version 1.9, 2004/05/10 15:54:40 |
|---|---|
| Line 4 from OFS.Folder import Folder | Line 4 from OFS.Folder import Folder |
| from Products.PageTemplates.PageTemplateFile import PageTemplateFile | from Products.PageTemplates.PageTemplateFile import PageTemplateFile |
| from Products.PageTemplates.PageTemplate import PageTemplate | from Products.PageTemplates.PageTemplate import PageTemplate |
| import urllib | import urllib |
| import re | |
| class OSAS_Root(Folder,Implicit): | class OSAS_Root(Folder,Implicit): |
| """Implicit Folder of the Storage Systems""" | """Implicit Folder of the Storage Systems""" |
| Line 52 class OSAS_Root(Folder,Implicit): | Line 53 class OSAS_Root(Folder,Implicit): |
| def downloadExternalXML(self,index_meta_url,xml_url): | def downloadExternalXML(self,index_meta_url,xml_url): |
| """lade xml file""" | """lade xml file""" |
| xmlneu=urllib.urlopen(xml_url).read() | xmlneu=urllib.urlopen(xml_url).read() |
| path=re.sub(self.REQUEST['SERVER_URL'],'',index_meta_url) | path=re.sub(self.REQUEST['SERVER_URL'],'',index_meta_url) |
| fh=file(path) | 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.write(xmlneu) |
| fh.close() | fh.close() |
| return "ok" | return "ok" |