Mercurial > hg > documentViewer
diff documentViewer.py @ 571:f1906951be2a
nicer batching of tocs
author | casties |
---|---|
date | Fri, 12 Oct 2012 17:02:40 +0200 |
parents | 694935574177 |
children | 9251719154a3 |
line wrap: on
line diff
--- a/documentViewer.py Fri Oct 12 16:01:41 2012 +0200 +++ b/documentViewer.py Fri Oct 12 17:02:40 2012 +0200 @@ -979,6 +979,8 @@ batch['nextStart'] = None batch['pages'] = pages + batch['first'] = minIdx + batch['last'] = maxIdx return batch def getBatch(self, start=1, size=10, end=0, data=None, fullData=True): @@ -1023,7 +1025,8 @@ else: batch['nextStart'] = None - logging.debug("getBatch start=%s size=%s end=%s batch=%s"%(start,size,end,repr(batch))) + batch['first'] = start + batch['last'] = end return batch