[Zope] dtml-in question
Steve Alexander
steve@cat-box.net
Tue, 01 Aug 2000 21:04:57 +0100
Peter Arvidsson wrote:
> I had the same problem and found out there is no way yet of making dtml-in with
> multiple conditions. Instead I had to do dtml-if's and make my own counter and
> previous/next attributes to handle the batches.
A better way is to use a ZCatalog. Make your objects catalog-aware, set
the catalog's indexes as appropriate to your multiple conditions, and
use the catalog to do your query and your counting and batching of
results.
It ought to be much faster too.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net