Stefan H. Holek writes:
> If I want to know whether a certain object is contained in
> the current folder I do this:
>
>
> yes it's here
>
> not here
>
>
> Id like to know whether this is the best/most efficient way to do it.
> Things like hasattr() are subject to aquisition i
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:
> >
> >
> > yes it's here
> >
> > not here
> >
> hasattr(self.aq_base, 'index_html') should probably work.
>
> aq_base returns the unwrapped base
> If I want to know whether a certain object is contained in
> the current folder I do this:
>
>
> yes it's here
>
> not here
>
>
> Id like to know whether this is the best/most efficient way to do it.
> Things like hasattr() are subject to aquisition i.e. they would find
> an index_ht
If I want to know whether a certain object is contained in
the current folder I do this:
yes it's here
not here
Id like to know whether this is the best/most efficient way to do it.
Things like hasattr() are subject to aquisition i.e. they would find
an index_html method along the acquis