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

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to