[Zope] How can I count the number of comments?

Greg Clough g_clough@hotmail.com
Tue, 26 Mar 2002 17:29:15 +0000


Hi,

I'm trying trying to loop over a group of news folders a,b,c and output a 
count of the number of dtml documents (comments) in each.  I've got this far 
(where ListComments is a dtml method that lists the comments):

<dtml-in expr="News.objectValues()">
<dtml-var sequence-item>
<A HREF="Comments/&dtml-id;/ListComments">
<dtml-var expr="_.len(Comments.*****.objectValues())">
Comments
</A>
</dtml-in>

but I need to be able to replace the ***** with the current sequence-id 
(i.e. a, b, or c) and I can't get it to work.

Can anyone help?
Greg




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com