[Zope] pb with the function getProperty
William GARCIA
wgarcia@esrf.fr
Tue, 23 Apr 2002 11:18:14 +0200
--=====================_10785078==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
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
If somebody can help me ?
Thanks
GARCIA William
--=====================_10785078==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
I would like to display a list of images (ids) located in a folder
and which property State equals to 'private'<br>
Here is the code I wrote :<br>
<dtml-in
expr="objectIds(['Image'])"><br>
<dtml-if
"_['sequence-item'].getProperty('State')='private'"><br>
<dtml-var sequence-item><br><br>
</dtml-if><br>
</dtml-in><br><br>
Zope generate the next error :<br>
<b>Error Type: AttributeError<br>
Error Value: getProperty<br><br>
</b>If somebody can help me ?<br>
Thanks<br><br>
GARCIA William<br>
</html>
--=====================_10785078==_.ALT--