Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 217:5d28552fd967
*** empty log message ***
author | abukhman |
---|---|
date | Fri, 08 Oct 2010 14:56:13 +0200 |
parents | 7c78d02cf7c6 |
children | a88ece9a5e74 |
comparison
equal
deleted
inserted
replaced
216:7c78d02cf7c6 | 217:5d28552fd967 |
---|---|
201 for l in links: | 201 for l in links: |
202 hrefNode =l.getAttributeNodeNS(None, u"href") | 202 hrefNode =l.getAttributeNodeNS(None, u"href") |
203 if hrefNode: | 203 if hrefNode: |
204 href=hrefNode.nodeValue | 204 href=hrefNode.nodeValue |
205 if href.startswith('http://chinagis.mpiwg-berlin.mpg.de'): | 205 if href.startswith('http://chinagis.mpiwg-berlin.mpg.de'): |
206 hrefNode.nodeValue =href.replace('chinagis_REST/REST/db/chgis/mpdl','chinagis/REST/db/mpdl%s'%url) | 206 hrefNode.nodeValue =href.replace('chinagis_REST','chinagis') |
207 | 207 #hrefNode.nodeValue =href.replace('chinagis_REST/REST/db/chgis/mpdl','chinagis/REST/db/mpdl%s'%url) |
208 #hrefNode.nodeValue=href.replace('chgis','') | |
209 l.setAttributeNS(None, 'target', '_blank') | 208 l.setAttributeNS(None, 'target', '_blank') |
210 return serializeNode(pagenode) | 209 return serializeNode(pagenode) |
211 | 210 |
212 if mode == "pureXml": | 211 if mode == "pureXml": |
213 # first div contains text | 212 # first div contains text |