comparison MpdlXmlTextServer.py @ 299:a988bbec59d1

*** empty log message ***
author abukhman
date Thu, 14 Oct 2010 15:13:19 +0200
parents f4f717cff60a
children e67f50a09259
comparison
equal deleted inserted replaced
298:f4f717cff60a 299:a988bbec59d1
154 result = dom.xpath("//result/resultPage/place") 154 result = dom.xpath("//result/resultPage/place")
155 for l in result: 155 for l in result:
156 hrefNode= l.getAttributeNodeNS(None, u"id") 156 hrefNode= l.getAttributeNodeNS(None, u"id")
157 href= hrefNode.nodeValue 157 href= hrefNode.nodeValue
158 hrefList.append(href) 158 hrefList.append(href)
159 myList = "; ".join(hrefList)
159 #hoho =hrefList.replace('','') 160 #hoho =hrefList.replace('','')
160 logging.debug("getGisPlaces :%s"%(hrefList)) 161 logging.debug("getGisPlaces :%s"%(myList))
161 162
162 163 return myList
163 return hrefList
164 164
165 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""): 165 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):
166 """returns single page from fulltext""" 166 """returns single page from fulltext"""
167 docpath = docinfo['textURLPath'] 167 docpath = docinfo['textURLPath']
168 path = docinfo['textURLPath'] 168 path = docinfo['textURLPath']