Changeset 418:bed1ff5eaec1 in documentViewer


Ignore:
Timestamp:
Dec 23, 2010, 5:13:01 PM (14 years ago)
Author:
casties
Branch:
default
Message:

fix getTocPages et al

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r417 r418  
    139139    def getTocEntries (self, docinfo=None):
    140140        """ number of text entries"""
    141         self.getInfoFromPage(docinfo)
     141        docinfo = self.getInfoFromPage(docinfo)
     142        logging.debug("gettocentries: docinfo=%s"%docinfo)
    142143        return docinfo['tocEntries']
    143144           
    144145    def getFigureEntries (self, docinfo=None):
    145146        """ number of figure entries"""
    146         self.getInfoFromPage(docinfo)
     147        docinfo = self.getInfoFromPage(docinfo)
    147148        return docinfo['figureEntries']
    148149                       
     
    210211    def getAllPlaces (self, docinfo=None):
    211212        """Show all Places if no places than 0"""
    212         self.getInfoFromPage(docinfo)
     213        docinfo = self.getInfoFromPage(docinfo)
    213214        return docinfo['allPlaces']
    214215
Note: See TracChangeset for help on using the changeset viewer.