Zope problem: objectValues('Folder')

Jens Riedel JensRie at gmx.de
Thu Jul 10 09:12:07 CEST 2003

Hello NG,

I'm a newbie to Zope and just testing the examples from the Zope Book.
All in all it works great but I have a problem with one example:

I try to get a list of subfolders by using

<dtml-in expr="objectValues('Folder')">
<li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li><br>
(From Zope Book Chapter 6)

I always get no entries (but there are 3 folders inside), the same 
problem occurs if I try objectValues('File') to show a file library.

In an example of the Zope Tutorial I use

<dtml-in expr="photos.objectValues()">

and it works fine.

I used copy-and-paste to get the code from the Zope Book so I'm sure I 
made no mistake. I tested on two different Windows systems (NT and 2000) 
with the current stable Zope release.

Does anybody know where the problem with "objectValues('Folder/File')" is?


More information about the Python-list mailing list