Zope problem: objectValues('Folder')

Jens Riedel JensRie at gmx.de
Thu Jul 10 03:12:07 EDT 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

<ul>
<dtml-in expr="objectValues('Folder')">
<li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li><br>
</dtml-in>
</ul>
(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?

Thanks,
Jens





More information about the Python-list mailing list