Changeset 409:f7d73ea4b38b in documentViewer for documentViewer.py
- Timestamp:
- Nov 25, 2010, 9:03:50 AM (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r405 r409 284 284 285 285 if viewMode=="auto": # automodus gewaehlt 286 if docinfo.has_key("textURL") or docinfo. has_key('textURLPath'): #texturl gesetzt und textViewer konfiguriert286 if docinfo.has_key("textURL") or docinfo.get('textURLPath',None): #texturl gesetzt und textViewer konfiguriert 287 287 viewMode="text" 288 288 else: … … 320 320 321 321 if viewMode=="auto": # automodus gewaehlt 322 if docinfo.has_key('textURL') or docinfo. has_key('textURLPath'): #texturl gesetzt und textViewer konfiguriert322 if docinfo.has_key('textURL') or docinfo.get('textURLPath',None): #texturl gesetzt und textViewer konfiguriert 323 323 viewMode="text_dict" 324 324 else: … … 797 797 logging.error("documentViewer (getdocinfo) unknown mode: %s!"%mode) 798 798 raise ValueError("Unknown mode %s! Has to be one of 'texttool','imagepath','filepath'."%(mode)) 799 799 800 # FIXME: fake texturlpath 801 if not docinfo.has_key('textURLPath'): 802 docinfo['textURLPath'] = None 803 800 804 logging.debug("documentViewer (getdocinfo) docinfo: %s"%docinfo) 801 805 #logging.debug("documentViewer (getdocinfo) docinfo: %s"%)
Note: See TracChangeset
for help on using the changeset viewer.