# HG changeset patch # User abukhman # Date 1288796345 -3600 # Node ID bb317af1c1973d8cc91f53a72fc509d00a6f7cc2 # Parent 9b2adae6c6e21f444d9c936a828f9497c5dac1aa *** empty log message *** diff -r 9b2adae6c6e2 -r bb317af1c197 MpdlXmlTextServer.py --- a/MpdlXmlTextServer.py Tue Nov 02 16:51:41 2010 +0100 +++ b/MpdlXmlTextServer.py Wed Nov 03 15:59:05 2010 +0100 @@ -139,6 +139,9 @@ docinfo['numPages']=int(getTextFromNode(result[0])) return docinfo + #def getQueryResultHits(self, docinfo=None, pageinfo=None): + + def getGisPlaces(self, docinfo=None, pageinfo=None): """ Show all Gis Places of whole Page""" xpath='//place' @@ -348,6 +351,7 @@ pagedom = Parse(pagexml) numdivs = pagedom.xpath("//div[@class='queryResultHits']") tocSearch = int(getTextFromNode(numdivs[0])) + logging.debug("documentViewer (gettoc) tocSearch: %s"%(tocSearch)) tc=int((tocSearch/10)+1) logging.debug("documentViewer (gettoc) tc: %s"%(tc)) return tc