[Zope] What's the magic word?
Michel Pelletier
michel@digicool.com
Wed, 6 Oct 1999 11:07:47 -0400
> -----Original Message-----
> From: Morten W. Petersen [mailto:mpeters@online.no]
> Sent: Wednesday, October 06, 1999 10:31 AM
> To: zope@zope.org
> Subject: [Zope] What's the magic word?
>
>
>
> I'm doing a search with an SQL query, which returns a bunch of hits.
> Now, what's the magic word in the _ namespace for finding how
> many hits
> are in that query (the in tag), for example, "Your query on
> blah had 4323
> hits on the word "bleh"" ? Is there maybe a way to do this via SQL?
Use _.len:
<dtml-let seq=aZSQLMethod len="_.len(seq)">
<dtml-in seq>
<dtml-var sequence-item> (<dtml-var len>)
</dtml-in>
</dtml-let>
>
> -Thanks in advance
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (Related lists - please, no cross posts or HTML encoding!
>
> To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>