comparison MpdlXmlTextServer.py @ 252:9de9d301743c

*** empty log message ***
author abukhman
date Wed, 13 Oct 2010 17:06:03 +0200
parents d358d3701d99
children d6ca167ccb1a
comparison
equal deleted inserted replaced
251:d358d3701d99 252:9de9d301743c
140 docinfo['numPages']=int(getTextFromNode(result[0])) 140 docinfo['numPages']=int(getTextFromNode(result[0]))
141 return docinfo 141 return docinfo
142 142
143 def getGisPlaces(self, docinfo): 143 def getGisPlaces(self, docinfo):
144 """ Show all Gis Places of whole Page""" 144 """ Show all Gis Places of whole Page"""
145 xpath='//place' 145 #xpath='//place'
146 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn)) 146 text=self.getServerData("xpath.xql", "document=%s&xpath='//place'%s&pn=%s"%(docinfo['textURLPath'],pn))
147 logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) 147 logging.debug("documentViewer getGisPlaces (text) text:%s"%(text))
148 pagedom = Parse(text) 148 pagedom = Parse(text)
149 result =pagedom.xpath("//result/resultPage/*") 149 result =pagedom.xpath("//result/resultPage/*")
150 for l in result: 150 for l in result:
151 hrefNode= l.getAttributeNodeNS(None, u"id") 151 hrefNode= l.getAttributeNodeNS(None, u"id")