Changeset 14:38e4af417f34 in documentViewer
- Timestamp:
- Jun 16, 2010, 7:04:42 PM (14 years ago)
- Branch:
- modularisierung
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r13 r14 218 218 219 219 if viewMode=="auto": # automodus gewaehlt 220 if docinfo. get("textURL",'') and self.textViewerUrl: #texturl gesetzt und textViewer konfiguriert220 if docinfo.has_key("textURL") or docinfo.has_key('textURLPath'): #texturl gesetzt und textViewer konfiguriert 221 221 viewMode="text" 222 222 else: … … 254 254 255 255 if viewMode=="auto": # automodus gewaehlt 256 if docinfo. get("textURL",''): #texturl gesetzt und textViewer konfiguriert256 if docinfo.has_key("textURL") or docinfo.has_key('textURLPath'): #texturl gesetzt und textViewer konfiguriert 257 257 viewMode="text_dict" 258 258 else: … … 569 569 viewerUrl = getTextFromNode(viewerUrls[0]) 570 570 docinfo['viewerURL'] = viewerUrl 571 571 572 # old style text URL 572 573 textUrls = dom.xpath("//texttool/text") 573 574 if textUrls and (len(textUrls) > 0): … … 581 582 docinfo['textURL'] = textUrl 582 583 584 # new style text-url-path 583 585 textUrls = dom.xpath("//texttool/text-url-path") 584 586 if textUrls and (len(textUrls) > 0):
Note: See TracChangeset
for help on using the changeset viewer.