[Zope] Why do I get an attribute error when one tool calls anothertool?

Paul Winkler pw_lists at slinkp.com
Sun Dec 5 22:00:11 EST 2004


On Sun, Dec 05, 2004 at 09:13:16PM -0500, Brian Lloyd wrote:
> 
> Hi Peter -
> 
> getToolByName depends on acquisition to work, and the one 
> place that it doesn't work is in a constructor ;) 

Next hint: generally, if you need an acquisition context for
something you do when an object is contstructed, then
you should do it in manage_afterAdd() and not __init__().

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list