[Zope] trying to use hasProperty()
Roger Sillito
w.r.sillito@ncl.ac.uk
Thu, 21 Feb 2002 16:20:45 -0000
Hello,
I'm trying to iterate through an list created with ObjectItems and test
if each sequence item has a given property, something like:
<dtml-in "objectItems(['DTML Document'])">
<dtml-if "_['sequence-item'].hasProperty('active')">
<p>This document is "active"</p>
</dtml-if>
</dtml-in>
This isn't working though, I get
Error Type: AttributeError
Error Value: hasProperty
any help with this greatly appreciated,
Roger.
_____________________________________________________________
Roger Sillito (Web Assistant)
Publications & Website Development Office 0191 222 3482
University of Newcastle upon Tyne naoyam.ncl.ac.uk
NE1 7RU w.r.sillito@ncl.ac.uk
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF