comparison MpdlXmlTextServer.py @ 283:b38f78e371ea

*** empty log message ***
author abukhman
date Thu, 14 Oct 2010 12:36:19 +0200
parents 117caabdc05f
children 4691a8063e67
comparison
equal deleted inserted replaced
282:117caabdc05f 283:b38f78e371ea
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 href = ",".join(href) 157
158 logging.debug("getGisPlaces :%s"%(href)) 158 #logging.debug("getGisPlaces :%s"%(href))
159 #logging.debug("getGisPlaces :%s"%(href)) 159 #logging.debug("getGisPlaces :%s"%(href))
160 #if href.startswith('id='): 160 #if href.startswith('id='):
161 #hrefNode.nodeValue = href.replace('id=',"?") 161 #hrefNode.nodeValue = href.replace('id=',"?")
162 #logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue)) 162 #logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue))
163 href = ",".join(href)
163 logging.debug("getGisPlaces :%s"%(href)) 164 logging.debug("getGisPlaces :%s"%(href))
164 return href 165 return href
165 166
166 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""): 167 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):
167 """returns single page from fulltext""" 168 """returns single page from fulltext"""