Hey Chris,

Would this work with a tree? So, in other words, how could I count the
children of a tree?

<dtml-tree branches="children">

<dtml-let count="_.len(children)">
   <dtml-var count>
</dtml-let>

</dtml-tree>

I basically want to count the numer of children in the tree..

Thanks,
J



> From: Chris McDonough <[EMAIL PROTECTED]>
> Date: Wed, 24 May 2000 12:12:26 -0400
> To: 'Frédéric QUIN' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Subject: RE: [Zope] How to know the number of parents of an element ???
> 
> Errr... untested.. but should work.
> 
> <dtml-let a="_.len(PARENTS)">
> ...
> </dtml-let>
> 
>> -----Original Message-----
>> From: Frédéric QUIN [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, May 24, 2000 12:38 PM
>> To: [EMAIL PROTECTED]
>> Subject: [Zope] How to know the number of parents of an element ???
>> 
>> 
>> Hi all,
>> 
>> 
>> Is there any function or method to get the number of parents
>> of an element ?
>> 
>> 
>> Thanks for your help,
>> Frederic
>> 
>> 
>> _______________________________________________
>> Zope maillist  -  [EMAIL PROTECTED]
>> http://lists.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists -
>> http://lists.zope.org/mailman/listinfo/zope-announce
>> http://lists.zope.org/mailman/listinfo/zope-dev )
>> 
> 
> _______________________________________________
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to