changeset 418:bed1ff5eaec1

fix getTocPages et al
author casties
date Thu, 23 Dec 2010 18:13:01 +0100
parents a7dc563103c7
children 69205c9d9404
files MpdlXmlTextServer.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MpdlXmlTextServer.py	Thu Dec 23 18:05:01 2010 +0100
+++ b/MpdlXmlTextServer.py	Thu Dec 23 18:13:01 2010 +0100
@@ -138,12 +138,13 @@
      
     def getTocEntries (self, docinfo=None):
         """ number of text entries"""
-        self.getInfoFromPage(docinfo)
+        docinfo = self.getInfoFromPage(docinfo)
+        logging.debug("gettocentries: docinfo=%s"%docinfo)
         return docinfo['tocEntries']
             
     def getFigureEntries (self, docinfo=None):
         """ number of figure entries"""
-        self.getInfoFromPage(docinfo)
+        docinfo = self.getInfoFromPage(docinfo)
         return docinfo['figureEntries']
                        
     def getGisPlaces(self, docinfo=None, pageinfo=None):
@@ -209,7 +210,7 @@
     
     def getAllPlaces (self, docinfo=None):
         """Show all Places if no places than 0"""
-        self.getInfoFromPage(docinfo)
+        docinfo = self.getInfoFromPage(docinfo)
         return docinfo['allPlaces']
 
     def getInfoFromPage(self, docinfo=None):