[Zope] Again: manage_afterAdd
Tom Deprez
tom.deprez@uz.kuleuven.ac.be
Mon, 28 Feb 2000 18:00:03 +0100
I've a class with a property myparent
This property needs to be set after a new instance is added or when the
instance is moved.
Thanks to people from the list, I know I've to make an external method and
add the external method manage_afterAdd to the methods of the class.
This is how the method looks:
def manage_afterAdd(self,item,container):
item.myparent=container.id
return
Unfortunately, when I add a new instance and then look at the myparent
property, the property is empty, while it should have a value.
What am I doing wrong?
tom.