[Zope] Re: objectmanager contains object test

Maik Jablonski maik.jablonski@uni-bielefeld.de
Wed, 18 Dec 2002 20:11:39 +0100


Kevin Carlson wrote:
> try this:
> 
>    if hasattr(context.data.news, object_id) :
>       ...

If you don't want to be confused by aquiring objects from above, you 
should use something like:

if hasattr(context.data.news.aq_explicit, object_id):

-mj