[ZPT] Batching changes with 1.3

richard@bizarsoftware.com.au richard@bizarsoftware.com.au
Tue, 29 May 2001 12:02:56 +1000


I'm now using the following for the lead-in to batching in ZPT:

<div tal:define="b_start python:path('request/b_start') or 0;
                 results python:here.listProducts(popular=0);
                 Batch python:modules['ZTUtils'].Batch;
                 global batch python:Batch(results, 5, int(b_start),
orphan=1)"
     tal:replace="nothing" />

Any improvements? This used to be (pre-1.3):

<div tal:define="b_start string:0;b_start (if exists) request/b_start;
                 results python:here.listProducts(popular=0);
                 Batch (nocall) modules/ZTUtils/Batch;
                 global batch python:Batch(results, 5, int(b_start),
orphan=1)"
     tal:replace="nothing" />


http://www.zope.org/Members/peterbe/DTML2ZPT needs updating with all
this...


     Richard

-- 
Richard Jones
richard@bizarsoftware.com.au
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)