[Zope] Length of results set

Ken ken@p11.org
Thu, 16 Jan 2003 14:07:55 +0100 (CET)


Hi everyone,

Sticking with Beno's example, how would one get the number of records (length of the matching set) for <dtml-if expr="folder==lang"> ?

> <dtml-let lang="REQUEST.get('HTTP_ACCEPT_LANGUAGE','en-us')">
 >   <dtml-in objectValues>
 >    <dtml-let folder=id>
 >     <dtml-let langShort=lang[2:]>
 >      <dtml-var langShort>
 >      <dtml-if expr="folder==lang">
 >       <dtml-var lang>
 >      </dtml-if>
 >     </dtml-let>
 >    </dtml-let>
 >   </dtml-in>
 > </dtml-let>

Sorry if this is a dumb question...

Thanks,

Ken