[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&nbsp; images (ids) located in a folder
and which property State equals to 'private'<br>
Here is the code I wrote :<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-in
expr=&quot;objectIds(['Image'])&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-if
&quot;_['sequence-item'].getProperty('State')='private'&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;dtml-var sequence-item&gt;&lt;br&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dtml-if&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dtml-in&gt;<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--