[Zope] Weird batching behaviour in Linux 2.3.0

Chris Cioffi zope@stopthesanity.org
Thu, 22 Feb 2001 10:52:17 -0500


Hi All,

First a big thanks to Troy for helping me get this far.

Now...I've got some weird behaviour with the batching, it displays my first
object the way I want, but then it groups the remaining 4, instead of
displaying the next three and the last 1, they way I would expect (and
desire).  This _seems_ like buggy behaviour to me.  (You can also set the
range to anything not divisible by 3 to see similar behaviour.)

<dtml-var standard_html_header>
<dtml-in expr="_.range(7)" size=3 start=query_start orphan=3>
  <dtml-if sequence-start>
    <dtml-if previous-sequence>
      <a href="<dtml-var URL><dtml-var sequence-query>query_start=<dtml-var
        previous-sequence-start-number>">
          (Previous <dtml-var previous-sequence-size> results)</a>
    </dtml-if>
    <h1>These words are displayed at the top of a batch:</h1>
    <ul>
  </dtml-if>
  <li>Iteration number: <dtml-var sequence-index></l1>
  <dtml-if sequence-end>
    </ul>
    <h4>These words are displayed at the bottom of a batch.</h4>
    <dtml-if next-sequence>
      <a href="<dtml-var URL><dtml-var sequence-query
        >query_start=<dtml-var
          next-sequence-start-number>">
            (Next <dtml-var next-sequence-size> results)
      </a>
    </dtml-if next-sequence>
  </dtml-if sequence-end>
</dtml-in>
<dtml-var standard_html_footer>

This is a DTML Method file, however the behaviour persists with a DTML
Document.  (Same code)

So, is this a bug in Zope or my understanding of how batches work?  (Or
both? ;)

Again, thanks.

Chris