Diff for /OSAS/OSA_system/OSAS_Root.py between versions 1.14 and 1.16

version 1.14, 2004/08/04 18:36:05 version 1.16, 2004/10/04 12:57:03
Line 98  class OSAS_Root(Folder,Implicit): Line 98  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"""
           #print "GI"
           #print xml_url
         xmlneu=urllib.urlopen(xml_url).read()          xmlneu=urllib.urlopen(xml_url).read()
   
       
         try:          try:
             dom=xml.dom.minidom.parseString(xmlneu)              dom=xml.dom.minidom.parseString(xmlneu)
         except:          except:
             print "Error"              print "Error"
             print xmlneu              return repr(xml_url)
             return "error"              return "error"
   
         path=re.sub(self.REQUEST['SERVER_URL'],'',index_meta_url)          path=re.sub(self.REQUEST['SERVER_URL'],'',index_meta_url)
Line 117  class OSAS_Root(Folder,Implicit): Line 119  class OSAS_Root(Folder,Implicit):
   
         path=re.sub('http://foxridge.mpiwg-berlin.mpg.de','',path) # falls foxridge als server          path=re.sub('http://foxridge.mpiwg-berlin.mpg.de','',path) # falls foxridge als server
         path=re.sub('http://content.mpiwg-berlin.mpg.de','',path) # falls content als server          path=re.sub('http://content.mpiwg-berlin.mpg.de','',path) # falls content als server
           path=re.sub('http://vision.mpiwg-berlin.mpg.de','',path) # falls vision als server
       path=re.sub('http://echo.mpiwg-berlin.mpg.de','',path) # falls echo
   #   path=re.sub('//','/',path) # falls echo
         fh=open(path,'w')          fh=open(path,'w')
   
         fh.write(xmlneu)          fh.write(xmlneu)

Removed from v.1.14  
changed lines
  Added in v.1.16


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>