[Zope] Re[2]: [Zope] Splitting ZSQL results across pages

John Morton jwm@plain.co.nz
Fri, 11 Aug 2000 12:01:17 +1200 (NZST)


On Thu, 10 Aug 2000 17:50:02 -0400 you wrote:

 > -----Original Message-----
 > >From: Dieter Maurer [dieter@handshake.de]
 > >
 > >John Morton writes:
 > > > I'd like to split the output of a ZSQL query across different instances
 > of
 > > > a page in the same fashion as zope.org does with ZCatalog output, but I
 > > > can't for the life of me find any documentation on how it's done. Does
 > > > anyone know the magic incarntations or where the documents are?
 > >
 > > Look at the "in" tag's batching features.
 
Which was the only place I didn't look. Doh!

 > Or for something with a gentler learning curve:
 > 
 > http://www.zope.org/Documentation/Guides/ZSQL
 > 
 > Go there and read the section on "Creating Search Interfaces."  Zope will
 > magically create a search query form and a table-formatted batching output
 > method on the back end, based on an SQL Query method of your own design.  So
 > read that, do that, and then look at the methods it creates.  I found it
 > very useful in getting up to speed on how to roll my own batching DTML
 > methods.

Yep. Worked for me; it all made sense after reading the output of a search
interface. Thanks to all who replied.

John.