Richard Wesley wrote:
I am busy converting a single Zope page to a Python cgi using the standalone ZPT implementation from sourceforge. Most of it seems to work just fine, but I am finding that although the Batch object is available and ported(?), it does not seem to work.
Whenever I try to access batch/next/first with a short list, the renderer complains that next.first is not defined. The ZPT codes looks like this
... batch python:modules['ZUtils'].Batch(...); next batch/next ...
<a tal:condition="next"
Looking at Batch.py, it appears that Batch.next is actually a LazyNextBatch object, which only defines the Zope-specific __of__ operator. This makes sense, but I am rather surprised that standalone ZTP does not handle this correctly in Expressions.py
Anyone have any suggestions about how to fix this?
You should probably pose the question to the folks responsible for that project. It may be a known problem, or they might know that they haven't gotten around to it yet. Or that it's impossible outside the context of Zope. I've never looked at it, so I can't say either way. --jcc