version 1.109, 2004/06/08 15:44:18
|
version 1.110, 2004/06/08 17:04:39
|
Line 2140 class ECHO_root(Folder,Persistent,Implic
|
Line 2140 class ECHO_root(Folder,Persistent,Implic
|
return dom.toxml('utf-8') |
return dom.toxml('utf-8') |
return "" |
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): |
def checkRef(self,ref): |
dbs={'vl_literature':'AND CD LIKE \'%lise%\'','vl_technology':'','vl_people':''} |
dbs={'vl_literature':'AND CD LIKE \'%lise%\'','vl_technology':'','vl_people':''} |