[Zope] Standalone ZPT and Batch
Richard Wesley
hawkfish at electricfish.com
Mon Jan 12 13:14:18 EST 2004
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?
TIA,
Best regards,
Richard Wesley
Co-President, Electric Fish, Inc.
<http://www.electricfish.com/>
(v) +1-206-493-1690x210
(f) +1-206-493-1697
(h) +1-206-632-4536
(m) +1-206-409-4536
More information about the Zope
mailing list