Changeset 250:7775d87016b5 in documentViewer for MpdlXmlTextServer.py


Ignore:
Timestamp:
Oct 11, 2010, 3:57:22 PM (14 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r249 r250  
    141141        return docinfo
    142142   
    143     def getGisPlases(self, docinfo):
     143    def getGisPlaces(self, docinfo):
    144144        """ Show all Gis Places of whole Page"""
    145145        xpath='//place'
    146146        text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn))
    147147        pagedom = Parse(text)
    148         result =pagedom.xpath("//result/resultPage")
     148        result =pagedom.xpath("//result/resultPage/*")
    149149        for l in result:
    150             hrefNode= l.getAttributeNodeNS(None, u"place")
    151             logging.debug("documentViewer (characterNormalization) l:%s"%(l))
     150            hrefNode= l.getAttributeNodeNS(None, u"id")
     151            logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l))
    152152            if hrefNode:
    153153                href= hrefNode.nodeValue
Note: See TracChangeset for help on using the changeset viewer.