Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 282:117caabdc05f
*** empty log message ***
| author | abukhman |
|---|---|
| date | Thu, 14 Oct 2010 12:34:46 +0200 |
| parents | 91c6bda004d6 |
| children | b38f78e371ea |
comparison
equal
deleted
inserted
replaced
| 281:91c6bda004d6 | 282:117caabdc05f |
|---|---|
| 152 dom = Parse(text) | 152 dom = Parse(text) |
| 153 result = dom.xpath("//result/resultPage/place") | 153 result = dom.xpath("//result/resultPage/place") |
| 154 for l in result: | 154 for l in result: |
| 155 hrefNode= l.getAttributeNodeNS(None, u"id") | 155 hrefNode= l.getAttributeNodeNS(None, u"id") |
| 156 href= hrefNode.nodeValue | 156 href= hrefNode.nodeValue |
| 157 for l in href: | 157 href = ",".join(href) |
| 158 href1 = append(href) | 158 logging.debug("getGisPlaces :%s"%(href)) |
| 159 logging.debug("getGisPlaces :%s"%(href1)) | |
| 160 #logging.debug("getGisPlaces :%s"%(href)) | 159 #logging.debug("getGisPlaces :%s"%(href)) |
| 161 #if href.startswith('id='): | 160 #if href.startswith('id='): |
| 162 #hrefNode.nodeValue = href.replace('id=',"?") | 161 #hrefNode.nodeValue = href.replace('id=',"?") |
| 163 #logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue)) | 162 #logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue)) |
| 164 logging.debug("getGisPlaces :%s"%(href)) | 163 logging.debug("getGisPlaces :%s"%(href)) |
