[Zope] pb with the function getProperty
William GARCIA
wgarcia@esrf.fr
Fri, 03 May 2002 15:33:28 +0200
--=====================_26100109==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
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
>
>If somebody can help me ?
>Thanks
>
>GARCIA William
--=====================_26100109==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
At 11:18 23/04/2002 +0200, you wrote:<br>
<blockquote type=cite class=cite cite>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>
</b></blockquote><br>
<blockquote type=cite class=cite cite>In order to answer the reply of
Maik Jablonski (it was just a forbid, the problem is not due to the
comparaison operator ==<br>
I don't know how to proceed, perhaps can I find a soltuion with a Python
script<br>
<b><br>
</b>If somebody can help me ?<br>
Thanks<br><br>
GARCIA William</blockquote><br>
</html>
--=====================_26100109==_.ALT--