[Zope] Count results of ZCatalog query

Max M maxm@mxm.dk
Fri, 14 Jun 2002 12:59:02 +0200

Juergen R. Plasser / Hexagon wrote:

> I am having a form based search here and the results page starts like 
> <dtml-in Catalog size=20 start=query_start>, so I thought I could 
> easily determine the length of "Catalog".
> I have tried <dtml-var "_.len(Catalog(REQUEST))"> and it seems to work 
> ;-)

That's in fact the same approach as Andres is proposing. Tha Catalog 
take both a mapping object (dict like REQUEST), and/or keyword parameters.

regards Max M


"Sorry I would Really Like To Help More On This Project,
But Am To Busy Doing Paid Work On A Tight Deadline"
    Max M