version 1.86, 2010/10/11 15:57:22
|
version 1.91, 2010/10/13 15:18:02
|
Line 140 class MpdlXmlTextServer(SimpleItem):
|
Line 140 class MpdlXmlTextServer(SimpleItem):
|
docinfo['numPages']=int(getTextFromNode(result[0])) |
docinfo['numPages']=int(getTextFromNode(result[0])) |
return docinfo |
return docinfo |
|
|
def getGisPlaces(self, docinfo): |
def getGisPlaces(self, docinfo=None, pageinfo=None): |
""" 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&pn=%s"%(docinfo['textURLPath'], xpath,pn)) |
docpath = docinfo['textURLPath'] |
|
url = docinfo['url'] |
|
selfurl = self.absolute_url() |
|
|
|
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) |
pagedom = Parse(text) |
result =pagedom.xpath("//result/resultPage/*") |
result =pagedom.xpath("//result/resultPage/*") |
for l in result: |
for l in result: |