--- ECHO_content/ECHO_collection.py 2004/06/08 15:44:18 1.109 +++ ECHO_content/ECHO_collection.py 2004/06/08 17:04:39 1.110 @@ -2140,6 +2140,23 @@ class ECHO_root(Folder,Persistent,Implic return dom.toxml('utf-8') return "" + def xml2html(self,str): + """link2html fuer VLP muss hier noch raus""" + if str: + + str=re.sub("\&","&",str) + dom=xml.dom.minidom.parseString(str) + links=dom.getElementsByTagName("link") + + + for link in links: + link.tagName="a" + ref=link.getAttribute("ref") + if self.checkRef(ref): + link.setAttribute("href",self.aq_parent.absolute_url()+"/vlp_coll?id="+ref) + + return dom.toxml('utf-8') + return "" def checkRef(self,ref): dbs={'vl_literature':'AND CD LIKE \'%lise%\'','vl_technology':'','vl_people':''}