Changeset 264:ac93e115d902 in documentViewer


Ignore:
Timestamp:
Oct 13, 2010, 4:34:32 PM (15 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r263 r264  
    143143    def getGisPlaces(self, docinfo=None, pageinfo=None):
    144144        """ Show all Gis Places of whole Page"""
    145         #xpath='//place'
     145        xpath='//place'
    146146        docpath = docinfo['textURLPath']
    147147        url = docinfo['url']
     
    149149        pn = pageinfo['current']
    150150       
    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")
    155154        logging.debug("getGisPlaces (place) result:%s"%(result))
    156155        for l in result:
Note: See TracChangeset for help on using the changeset viewer.