[Zope] Length of a list (was: [Zope] How does one display document count of a folder?)
Dieter Maurer
dieter@handshake.de
Sun, 10 Sep 2000 09:33:58 +0200 (CEST)
sean@horse101.com writes:
> I am using a script to display the contents of a folder, but I
> wonder how I might display a document count of the dtml
> documents in a folder?
You want to get the length of a list, in your case the return
value of "objectIds".
This is a FAQ:
you use "_.len(<list expression>)" or
(insided a dtml-in) "<dtml-var sequence-length>".
Dieter