# HG changeset patch # User abukhman # Date 1287048383 -7200 # Node ID 7a52ace035e6cb9465954191d530f30e654782c8 # Parent fb13d8054a23e7c34e75dbc0cbe92054c3f3444d *** empty log message *** diff -r fb13d8054a23 -r 7a52ace035e6 MpdlXmlTextServer.py --- a/MpdlXmlTextServer.py Thu Oct 14 11:22:37 2010 +0200 +++ b/MpdlXmlTextServer.py Thu Oct 14 11:26:23 2010 +0200 @@ -151,16 +151,15 @@ text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],xpath,pn)) dom = Parse(text) result = dom.xpath("//result/resultPage/place") - logging.debug("getGisPlaces (place) result:%s"%(result)) + #logging.debug("getGisPlaces (place) result:%s"%(result)) for l in result: hrefNode= l.getAttributeNodeNS(None, u"id") - logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) - if hrefNode: - href= hrefNode.nodeValue + #logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) + href= hrefNode.nodeValue #if href.startswith('id='): #hrefNode.nodeValue = href.replace('id=',"?") #logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue)) - logging.debug("documentViewer getGisPlaces (characterNormalization) href:%s"%(href)) + logging.debug("getGisPlaces :%s"%(href)) return serializeNode(href) def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):