Zope problem: objectValues('Folder')
Jens Riedel
JensRie at gmx.de
Thu Jul 10 04:29:57 EDT 2003
Max M schrieb:
>><ul>
>><dtml-in expr="objectValues('Folder')">
>><li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li><br>
>></dtml-in>
>></ul>
> If you have written it exactly like that, it should work. You have no
> folders inside the folder you are running it in then.
That's my problem. I followed the instructions of the Zope Book example
exactly and created 3 folders in the folder I use the
objectValues()-method on.
In another example I have the folder "photos" with 3 jpg-files in it.
When I call "photos.objectValues()" I get a list with the 3 files, if I
use "photos.objectValues('File')" I get nothing...
The objectValues-method seems not working when I specify it on a type.
> I assume you have not written your code that way, but rather:
>
> objectValues(['Folder','File'])
Correct, I did write either objectValues('Folder') or
objectValues('File') in my code.
Greetings,
Jens
More information about the Python-list
mailing list