[Zope] How can folder address its contents?

Stephen Pitts smpitts@midsouth.rr.com
Sun, 12 Dec 1999 17:48:24 -0600


On Sun, Dec 12, 1999 at 05:11:43PM -0500, Robert W. Erb wrote:
> Stephen -
> 
> First, thanks for the help.
> 
> I'm lost. I created a DTML Document in a folder called "eScream".
> The whole contents of this document are:
> 
> <dtml-in use_cases>
>   <dtml-var "_['sequence-item'].id">
> </dtml-in>

Try 
<dtml-in "use_cases.objectItems()">
<dtml-var "_['sequence-item'].id">
</dtml-in>

You can't iterate over a Folder, the <dtml-in> method only works with
lists. The objectItems method of an object retuns a list of the objects
in a folder.
-- 
Stephen Pitts
smpitts@midsouth.rr.com
webmaster - http://www.mschess.org