R
Richard Wesley
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" tal:attributes="...next/first..."...>
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,
--
- rmgw
<http://www.trustedmedianetworks.com/>
----------------------------------------------------------------------------
Richard Wesley Trusted Media Networks, Inc.
"There's nothing intellectual about wandering around Italy
in a big shirt, trying to get laid."
- Rowan Atkinson, "Black Adder:Ink and Incapability"
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" tal:attributes="...next/first..."...>
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,
--
- rmgw
<http://www.trustedmedianetworks.com/>
----------------------------------------------------------------------------
Richard Wesley Trusted Media Networks, Inc.
"There's nothing intellectual about wandering around Italy
in a big shirt, trying to get laid."
- Rowan Atkinson, "Black Adder:Ink and Incapability"