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

2005-05-20 Thread Jean-Marc Orliaguet
Stephan Richter wrote: >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 ob

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

2005-05-20 Thread Roger Ineichen
Hi Jean-Marc Created object don't have a ILocation. They have to be added first to a container. Use ObjectAddedEvent for get a object with a ILocation. Regards Roger Ineichen > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jean-Marc Orliaguet

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

2005-05-20 Thread Stephan Richter
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 i