Changeset 264:ac93e115d902 in documentViewer
- Timestamp:
- Oct 13, 2010, 4:34:32 PM (15 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MpdlXmlTextServer.py
r263 r264 143 143 def getGisPlaces(self, docinfo=None, pageinfo=None): 144 144 """ Show all Gis Places of whole Page""" 145 #xpath='//place'145 xpath='//place' 146 146 docpath = docinfo['textURLPath'] 147 147 url = docinfo['url'] … … 149 149 pn = pageinfo['current'] 150 150 151 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn)) 152 #logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) 153 pagedom = Parse(text) 154 result =pagedom.xpath("//result/resultPage") 151 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],xpath,pn)) 152 dom = Parse(text) 153 result = dom.xpath("//result/resultPage") 155 154 logging.debug("getGisPlaces (place) result:%s"%(result)) 156 155 for l in result:
Note: See TracChangeset
for help on using the changeset viewer.