Changeset 409:f7d73ea4b38b in documentViewer for MpdlXmlTextServer.py


Ignore:
Timestamp:
Nov 25, 2010, 9:03:50 AM (13 years ago)
Author:
casties
Branch:
default
Message:

quick fix for broken texturlpath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r407 r409  
    144144        """ Show all Gis Places of whole Page"""
    145145        xpath='//place'
    146         docpath = docinfo['textURLPath']
     146        docpath = docinfo.get('textURLPath',None)
     147        if not docpath:
     148            return None
     149
    147150        url = docinfo['url']
    148151        selfurl = self.absolute_url()
     
    199202    def getOrigPages (self, docinfo=None, pageinfo=None):
    200203        """Show original page """
    201         docpath = docinfo['textURLPath']
     204        docpath = docinfo.get('textURLPath',None)
     205        if not docpath:
     206            return None
     207
    202208        logging.debug ("docinfo['textURLPath']=%s"%(docinfo['textURLPath']))
    203209        #url = docinfo['url']
Note: See TracChangeset for help on using the changeset viewer.