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 <chrism@digicool.com> Date: Wed, 24 May 2000 12:12:26 -0400 To: 'Frédéric QUIN' <frederic.quin@free.fr>, zope@zope.org 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:frederic.quin@free.fr] Sent: Wednesday, May 24, 2000 12:38 PM To: zope@zope.org 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 - Zope@zope.org 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 - Zope@zope.org 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 )