Mercurial > hg > documentViewer
changeset 588:e1034c2ca255
bug with missing current param.
author | casties |
---|---|
date | Thu, 15 Nov 2012 17:20:03 +0100 |
parents | 6000c7e24d8a |
children | d8d6975cebcb |
files | MpdlXmlTextServer.py zpt/thumbs_main_rss.zpt |
diffstat | 2 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/MpdlXmlTextServer.py Thu Nov 15 17:09:45 2012 +0100 +++ b/MpdlXmlTextServer.py Thu Nov 15 17:20:03 2012 +0100 @@ -239,10 +239,6 @@ if not docpath: return None - # just checking - if pageinfo['current'] != pn: - logging.warning("getTextPage: current!=pn!") - # stuff for constructing full urls selfurl = docinfo['viewerUrl'] textParams = {'document': docpath,
--- a/zpt/thumbs_main_rss.zpt Thu Nov 15 17:09:45 2012 +0100 +++ b/zpt/thumbs_main_rss.zpt Thu Nov 15 17:20:03 2012 +0100 @@ -3,7 +3,7 @@ xmlns:media="http://search.yahoo.com/mrss" xmlns:tal="http://xml.zope.org/namespaces/tal"> -<channel tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode options/viewMode; start pageinfo/start; end pageinfo/end; rows pageinfo/rows; cols pageinfo/cols; current pageinfo/current; grpsize pageinfo/groupsize; pages docinfo/numPages"> +<channel tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode options/viewMode; start pageinfo/start; end pageinfo/end; rows pageinfo/rows; cols pageinfo/cols; grpsize pageinfo/groupsize; pages docinfo/numPages"> <item tal:repeat="idx python:range(1,pages)"> <title tal:content="string:$idx">title</title>