[Zope] Newbie question: script not seeing objects.

Anders Schneiderman schneida@seiu.org
Fri, 01 Jun 2001 10:57:33 -0400


In a folder of my Zope site, I want to set up index_html so it will 
automatically list the folders that are inside it.  Unfortunately, it isn't 
working; nothing's showing up.

Inside seiunet, there are two folders:
Organizing
Research

There are also two dtml methods:
index_html
listfolders

index_html contains:
---------------------------------------
<dtml-var standard_html_header>
<h2><dtml-var title_or_id></h2>
<p>
This is the <dtml-var id> Document.
</p>
<dtml-var listfolders>
<dtml-var standard_html_footer>
---------------------------------------

listfolders, code that I swiped from the Zope book, contains:
---------------------------------------
To view a folder, click on its name below:

<ul>
<dtml-in expr="objectValues('Folder')">
    <li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a><br></lr>
</dtml-in>
</ul>
---------------------------------------


Here's what I get when I hit http://localhost:8080/seiunet/:
---------------------------------------
Welcome to SEIUNet!

This is the index_html Document.
To view a folder, click on its name below:

---------------------------------------

At first I thought I must've screwed up something from playing around with 
so many Products, so I created a new, clean install of the latest stable 
version of Zope.  But as the results above show, it's still not 
working.  What am I doing wrong?

Thanks,
Anders

P.S.  Thanks for the help from Tres and others steering me towards 
CMF.  I'm headed there next, but first I want to make sure I've got _some_ 
clue as to what I'm doing.