[Zope] Avoiding acquisition aka testing for contained objects

Stefan H. Holek stefan@epy.co.at
Thu, 16 Nov 2000 16:44:10 +0100 (CET)


On Wed, 15 Nov 2000, Johan Carlsson wrote:

> > If I want to know whether a certain object is contained in 
> > the current folder I do this:
> > 
> > <dtml-if "'index_html' in this().objectIds()">
> >   yes it's here
> > <dtml-else>
> >   not here
> > </dtml-if>

> hasattr(self.aq_base, 'index_html') should probably work.
> 
> aq_base returns the unwrapped base object.

Thanks, but it seems that aq_base is not available from DTML 

- Hmm

Regards,
Stefan