Mercurial > hg > documentViewer
changeset 272:7a52ace035e6
*** empty log message ***
author | abukhman |
---|---|
date | Thu, 14 Oct 2010 11:26:23 +0200 |
parents | fb13d8054a23 |
children | 5b483495dbe4 |
files | MpdlXmlTextServer.py |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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=""):