Mercurial > hg > documentViewer
changeset 264:ac93e115d902
*** empty log message ***
author | abukhman |
---|---|
date | Wed, 13 Oct 2010 18:34:32 +0200 |
parents | b81fd7cafa91 |
children | 4a0dd5ff6859 |
files | MpdlXmlTextServer.py |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/MpdlXmlTextServer.py Wed Oct 13 18:24:18 2010 +0200 +++ b/MpdlXmlTextServer.py Wed Oct 13 18:34:32 2010 +0200 @@ -142,16 +142,15 @@ def getGisPlaces(self, docinfo=None, pageinfo=None): """ Show all Gis Places of whole Page""" - #xpath='//place' + xpath='//place' docpath = docinfo['textURLPath'] url = docinfo['url'] selfurl = self.absolute_url() pn = pageinfo['current'] - text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn)) - #logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) - pagedom = Parse(text) - result =pagedom.xpath("//result/resultPage") + text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],xpath,pn)) + dom = Parse(text) + result = dom.xpath("//result/resultPage") logging.debug("getGisPlaces (place) result:%s"%(result)) for l in result: hrefNode= l.getAttributeNodeNS(None, u"id")