[Zope] getting the number of returned objects

Timothy Wilson wilson@visi.com
Sat, 20 Oct 2001 14:10:24 -0500 (CDT)

Hi everyone,

Let's say I've got a PythonScript called 'getResults' that does a catalog
query. What is the proper way to get how many results were returned by
getResults in DTML? For example, <dtml-var "len(getResults)"> doesn't
work (I didn't think it would). I've tried some other variants without
success. Any ideas?


Tim Wilson      |   Visit Sibley online:   | Check out:
Henry Sibley HS |  http://www.isd197.org   | http://www.zope.com
W. St. Paul, MN |                          | http://slashdot.org
wilson@visi.com |  <dtml-var pithy_quote>  | http://linux.com