Mercurial > hg > documentViewer
changeset 524:1a20621f2555
Merge with acdbd82114bbd523a7d58e3bcde81ae50aca0351
author | casties |
---|---|
date | Thu, 05 Apr 2012 14:56:01 +0200 |
parents | 198b3ae3ea7e (current diff) acdbd82114bb (diff) |
children | 70c3ae5eac7c |
files | |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/zpt/toc_thumbs.zpt Fri Mar 23 16:31:13 2012 +0100 +++ b/zpt/toc_thumbs.zpt Thu Apr 05 14:56:01 2012 +0200 @@ -61,7 +61,7 @@ tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic'); alt idx" /><br/> <span title="Scan number" tal:content="idx"/> - <span tal:condition="python:pageNumbers and pageNumbers[idx]['no']" title="Original page number" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])"/> + <span tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']" title="Original page number" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])"/> </a> </td> </tr> @@ -69,4 +69,4 @@ </div> <!-- content --> </div> <!-- toc --> </body> -</html> \ No newline at end of file +</html>