version 1.89, 2010/10/13 15:10:25
|
version 1.90, 2010/10/13 15:16:01
|
Line 142 class MpdlXmlTextServer(SimpleItem):
|
Line 142 class MpdlXmlTextServer(SimpleItem):
|
|
|
def getGisPlaces(self, docinfo=None, pageinfo=None): |
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' |
docpath = docinfo['textURLPath'] |
docpath = docinfo['textURLPath'] |
url = docinfo['url'] |
url = docinfo['url'] |
selfurl = self.absolute_url() |
selfurl = self.absolute_url() |
|
|
text=self.getServerData("xpath.xql", "document=%s&xpath='//place'%s&pn=%s"%(docinfo['textURLPath'],pn)) |
text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn)) |
logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) |
logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) |
pagedom = Parse(text) |
pagedom = Parse(text) |
result =pagedom.xpath("//result/resultPage/*") |
result =pagedom.xpath("//result/resultPage/*") |