Diff for /documentViewer/MpdlXmlTextServer.py between versions 1.78 and 1.79

version 1.78, 2010/10/11 14:49:37 version 1.79, 2010/10/11 15:03:17
Line 143  class MpdlXmlTextServer(SimpleItem): Line 143  class MpdlXmlTextServer(SimpleItem):
     def getGisPlases(self, docinfo):      def getGisPlases(self, docinfo):
         """ Show all Gis Places of whole Page"""          """ Show all Gis Places of whole Page"""
         xpath='//place'          xpath='//place'
         text=self.getServerData("xpath.xql", "document=%s&xpath=%s"%(docinfo['textURLPath'], xpath))          text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn))
         pagedom = Parse(text)          pagedom = Parse(text)
         result =pagedom.xpath("//result/resultPage/")          result =pagedom.xpath("//result/resultPage/")
         logging.debug("YYYY result%s"%result)  
         for l in result:          for l in result:
             hrefNode= l.getAttributeNodeNS(None, u"place")              hrefNode= l.getAttributeNodeNS(None, u"place")
             logging.debug("YYYY hrefNode%s"%hrefNode)  
             if hrefNode:              if hrefNode:
                 href= hrefNode.nodeValue                  href= hrefNode.nodeValue
                 if href.startswith('id='):                  if href.startswith('id='):

Removed from v.1.78  
changed lines
  Added in v.1.79


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>