changeset 195:2c2dcfbb701c

*** empty log message ***
author abukhman
date Tue, 05 Oct 2010 12:38:17 +0200
parents 490a0a1a65d7
children 60c98265a8dd
files MpdlXmlTextServer.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MpdlXmlTextServer.py	Tue Oct 05 11:58:00 2010 +0200
+++ b/MpdlXmlTextServer.py	Tue Oct 05 12:38:17 2010 +0200
@@ -136,8 +136,8 @@
         xpath ='/count(//pb)'
         text=self.getServerData("xpath.xql", "document=%s&xpath=%s"%(docinfo['textURLPath'], xpath))
         logging.debug("documentViewer (text) text: %s"%(text))
-        docinfo['numPages']=text.xpath(resultPage)
-        #logging.debug("documentViewer (characterNormalization) characterNormalization: %s"%(characterNormalization))
+        docinfo['numPages']=text('resultPage')
+        logging.debug("documentViewer (characterNormalization) docinfo['numPages']: %s"%(docinfo['numPages']))
         return docinfo
        
     def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):