William GARCIA wrote:
Part 1.1Type: Plain Text (text/plain)
plz no html mails At 11:18 23/04/2002 +0200, you wrote:
I would like to display a list of images (ids) located in a folder and
which property State equals to 'private' Here is the code I wrote : <dtml-in expr="objectIds(['Image'])"> <dtml-if "_['sequence-item'].getProperty('State')=='private'"> <dtml-var sequence-item><br> </dtml-if> </dtml-in>
Zope generate the next error : Error Type: AttributeError Error Value: getProperty
In order to answer the reply of Maik Jablonski (it was just a forbid, the problem is not due to the comparaison operator == I don't know how to proceed, perhaps can I find a soltuion with a Python script
http://www.zope.org/Documentation/ZopeBook/AppendixB.stx tells us objectIds(type=None) This method returns a list of the ids of the contained objects. very clearly, an id does not have an attribute "getProperty" (an Image-object has). ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299