[Zope3-dev] events: getting the context of objects

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri May 20 06:21:02 EDT 2005


On Friday 20 May 2005 06:15, Jean-Marc Orliaguet wrote:
> I want to get the location about created object through event
> notifications, but there is never enough context (there  is "Not enough
> context to determine location root", ...)

At the time an object is created it has no location, since it has not been 
added to anything. You really want to listen to the ObjectAddedEvent, which 
is triggered when an object is added to a container.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list