Mercurial > hg > documentViewer
comparison documentViewer.py @ 474:0bc4a153863a elementtree
more cleanup (before reversing macro order)
author | casties |
---|---|
date | Fri, 05 Aug 2011 15:31:27 +0200 |
parents | 74e9e74277e9 |
children | 5a3ab27385ce |
comparison
equal
deleted
inserted
replaced
473:74e9e74277e9 | 474:0bc4a153863a |
---|---|
298 viewMode = "text" | 298 viewMode = "text" |
299 viewType = "dict" | 299 viewType = "dict" |
300 else: | 300 else: |
301 viewMode = "images" | 301 viewMode = "images" |
302 | 302 |
303 elif viewMode == "text_dict": | |
304 # legacy fix | |
305 viewMode = "text" | |
306 viewType = "dict" | |
307 | |
308 | |
303 pageinfo = self.getPageinfo(start=start, current=pn, docinfo=docinfo, viewMode=viewMode, viewType=viewType, tocMode=tocMode) | 309 pageinfo = self.getPageinfo(start=start, current=pn, docinfo=docinfo, viewMode=viewMode, viewType=viewType, tocMode=tocMode) |
304 | 310 |
305 # get template /template/viewer_main | 311 # get template /template/viewer_main |
306 pt = getattr(self.template, 'viewer_main') | 312 pt = getattr(self.template, 'viewer_main') |
307 # and execute with parameters | 313 # and execute with parameters |