I'm running Zope 2.2.2, and I'm trying to use the batching stuff for the dtml-in tag, however, I can't seem to access any attributes off the 'next-batches' or 'previous-batches' mapping object that's supposed to be available, with the attributes 'batch-start-index', 'batch-end-index', and 'batch-size'. However, my example code (see below) blows up with a key error when trying to access any of these. Is this a bug, or am I just misunderstanding how to use this thing? I wrote an external method to dir the 'next-batches' object, and it seems the only attributes available are: ['data', 'items', 'query_string', 'start_name_re'] -Brett <p> <dtml-in "mystuff.retseq()" size=5 start=start> <dtml-var sequence-item> </dtml-in> </p> <p> <dtml-in "mystuff.retseq()" size=5 start=start previous> <a href="<dtml-var absolute_url>/batch_me?start=<dtml-var previous-sequence-start-index>">Previous</a> </dtml-in> <dtml-in "mystuff.retseq()" size=5 start=start next overlap=-1> <dtml-try> <dtml-in next-batches> <dtml-var batch-start-index><br> </dtml-in> <dtml-except> <pre> <dtml-var error_type><br> <dtml-var error_value><br> <dtml-var error_tb><br> </pre> </dtml-try> <a href="<dtml-var absolute_url>/batch_me?start=<dtml-var next-sequence-start-index>">Next</a> </dtml-in> </p>
participants (1)
-
Brett Carter