28 Feb
2000
28 Feb
'00
5:47 p.m.
----- Original Message ----- From: "Tom Deprez" <tom.deprez@uz.kuleuven.ac.be> To: <zope@zope.org> Sent: Monday, February 28, 2000 12:00 PM Subject: [Zope] Again: manage_afterAdd
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
This is a ZClass, right? It should be: item.propertysheets.YourPropsheet.manage_changeProperties({'myparent' : container.id}) Kevin