Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 265:4a0dd5ff6859
*** empty log message ***
author | abukhman |
---|---|
date | Wed, 13 Oct 2010 18:38:29 +0200 |
parents | ac93e115d902 |
children | f06b992a5b24 |
comparison
equal
deleted
inserted
replaced
264:ac93e115d902 | 265:4a0dd5ff6859 |
---|---|
148 selfurl = self.absolute_url() | 148 selfurl = self.absolute_url() |
149 pn = pageinfo['current'] | 149 pn = pageinfo['current'] |
150 | 150 |
151 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],xpath,pn)) | 151 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],xpath,pn)) |
152 dom = Parse(text) | 152 dom = Parse(text) |
153 result = dom.xpath("//result/resultPage") | 153 result = dom.xpath("//result/resultPage/place") |
154 logging.debug("getGisPlaces (place) result:%s"%(result)) | 154 logging.debug("getGisPlaces (place) result:%s"%(result)) |
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 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) | 157 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) |
158 if hrefNode: | 158 if hrefNode: |