[Zope] trying to use hasProperty()

Roger Sillito w.r.sillito@ncl.ac.uk
Fri, 22 Feb 2002 10:18:31 -0000


> > <dtml-in "objectItems(['DTML Document'])">
> >   <dtml-if "_['sequence-item'].hasProperty('active')">
>
> > This isn't working though, I get
> >
> > Error Type: AttributeError
> > Error Value: hasProperty
>
> Does it work using objectValues instead of objectItems?

Afraid not.  Dieter has suggested using _.getitem() instead as this
returns the object rather than rendering it (as _['..'] does) - will
have a go with this.
Rog.