[Zope] getattr and acquisition

Paul Winkler pw_lists@slinkp.com
Mon, 16 Dec 2002 09:44:53 -0800


On Mon, Dec 16, 2002 at 06:36:32PM +0100, Sylvain Th?nault wrote:
> hi,
> 
> what's the way to know if an object has an attribute without acquisition?

You can unwrap the object from its acquisition wrappers:

getattr(foo.aq_base, "attribute")

-- 

Paul Winkler
http://www.slinkp.com
"Welcome to Muppet Labs, where the future is made - today!"