I've also discovered that setting overlap = 0 actually causes everything to overlap by 1. I didn't see anything in the collector about this either... -Brett
"Brett" == Brett Carter <brett@kavi.com> writes:
Brett> I'm running Zope 2.2.2, and I'm trying to use the batching stuff for Brett> the dtml-in tag, however, I can't seem to access any attributes off Brett> the 'next-batches' or 'previous-batches' mapping object that's Brett> supposed to be available, with the attributes 'batch-start-index', Brett> 'batch-end-index', and 'batch-size'. However, my example code (see Brett> below) blows up with a key error when trying to access any of these. Brett> Is this a bug, or am I just misunderstanding how to use this thing? Brett> I wrote an external method to dir the 'next-batches' object, and it Brett> seems the only attributes available are: Brett> ['data', 'items', 'query_string', 'start_name_re'] Brett> -Brett Brett> <p> Brett> <dtml-in "mystuff.retseq()" size=5 start=start> Brett> <dtml-var sequence-item> Brett> </dtml-in> </p> Brett> <p> Brett> <dtml-in "mystuff.retseq()" size=5 start=start previous> Brett> <a href="<dtml-var absolute_url>/batch_me?start=<dtml-var previous-sequence-start-index>">Previous</a> Brett> </dtml-in> Brett> <dtml-in "mystuff.retseq()" size=5 start=start next overlap=-1> Brett> <dtml-try> Brett> <dtml-in next-batches> Brett> <dtml-var batch-start-index><br> Brett> </dtml-in> Brett> <dtml-except> Brett> <pre> Brett> <dtml-var error_type><br> Brett> <dtml-var error_value><br> Brett> <dtml-var error_tb><br> Brett> </pre> Brett> </dtml-try> Brett> <a href="<dtml-var absolute_url>/batch_me?start=<dtml-var next-sequence-start-index>">Next</a> Brett> </dtml-in> Brett> </p> Brett> _______________________________________________ Brett> Zope-Dev maillist - Zope-Dev@zope.org Brett> http://lists.zope.org/mailman/listinfo/zope-dev Brett> ** No cross posts or HTML encoding! ** Brett> (Related lists - Brett> http://lists.zope.org/mailman/listinfo/zope-announce Brett> http://lists.zope.org/mailman/listinfo/zope )