Weird batching behaviour in Linux 2.3.0
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
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
This is how batches work. Check out: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.7.5.1.html Set orphan to 0 to have it display the way you want. -- Andy McKay.
orphan really should default to 0 so newbies don't get confused. They can later learn about and make use of this nice batching feature. _______________________ Ron Bickers Logic Etc, Inc. rbickers@logicetc.com
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Andy McKay Sent: Thursday, February 22, 2001 11:10 AM To: Chris Cioffi; zope@zope.org Subject: Re: [Zope] Weird batching behaviour in Linux 2.3.0
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
This is how batches work. Check out:
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.7.5.1.html
Set orphan to 0 to have it display the way you want.
participants (3)
-
Andy McKay -
Chris Cioffi -
Ron Bickers