Batchsize looping problem
Why is it that sometimes batch sizing doesn't work?? <dtml-in "eatcatalog.objectValues(['DTML Document'])" reverse size=5> This returns the same as... <dtml-in "eatcatalog.objectValues(['DTML Document'])" reverse> ...would do. The start attribute response to my commands properly. But NOT the SIZE! Any hints on this? I have been able to do batchsized loops successfully before and I have read Michaels http://www.zope.org/Members/michel/ZB/AdvDTML.dtml Cheers, Peter
Peter Bengtsson wrote:
Why is it that sometimes batch sizing doesn't work??
<dtml-in "eatcatalog.objectValues(['DTML Document'])" reverse size=5> This returns the same as... <dtml-in "eatcatalog.objectValues(['DTML Document'])" reverse> ...would do.
Perhaps you're getting bitten by the implicit default value of orphan=3? This really sucks, IMNSHO, but no-one seems to want to change it :-S cheers, Chris
Peter Bengtsson wrote:
Why is it that sometimes batch sizing doesn't work??
<dtml-in "eatcatalog.objectValues(['DTML Document'])" reverse size=5> This returns the same as... <dtml-in "eatcatalog.objectValues(['DTML Document'])" reverse> ...would do.
Perhaps you're getting bitten by the implicit default value of orphan=3? This really sucks, IMNSHO, but no-one seems to want to change it :-S
Cheers! I was lazy before when I searched the mailing list. Adding orphan=0 helped. <dtml-in "eatcatalog.objectValues(['DTML Document'])" reverse size=5> != <dtml-in "eatcatalog.objectValues(['DTML Document'])" reverse size=5 orphan=0> DC, people! This causes a lot of confusion :)
cheers,
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Casey Duncan -
Chris Withers -
Peter Bengtsson