[Zope] getting the number of returned objects
   
    Gitte Wange
     
    gitte@mmmanager.org" <gitte@mmmanager.org
       
    Sat, 20 Oct 2001 21:25:26 +0200
    
    
  
On 20. oktober 2001 21:10, Timothy Wilson [SMTP:wilson@visi.com] wrote:
> 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
Have you tried with:
<dtml-in getResults>
 <dtml-var sequence-length>
</dtml-in>
?
Gitte Wange