comparison MpdlXmlTextServer.py @ 255:ce129cc3e031

*** empty log message ***
author abukhman
date Wed, 13 Oct 2010 17:18:02 +0200
parents 4b13f2e54665
children ad1458aff8a6
comparison
equal deleted inserted replaced
254:4b13f2e54665 255:ce129cc3e031
140 docinfo['numPages']=int(getTextFromNode(result[0])) 140 docinfo['numPages']=int(getTextFromNode(result[0]))
141 return docinfo 141 return docinfo
142 142
143 def getGisPlaces(self, docinfo=None, pageinfo=None): 143 def getGisPlaces(self, docinfo=None, pageinfo=None):
144 """ Show all Gis Places of whole Page""" 144 """ Show all Gis Places of whole Page"""
145 xpath='//place' 145 #xpath='//place'
146 docpath = docinfo['textURLPath'] 146 docpath = docinfo['textURLPath']
147 url = docinfo['url'] 147 url = docinfo['url']
148 selfurl = self.absolute_url() 148 selfurl = self.absolute_url()
149 149
150 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn)) 150 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn))