Marco Bizzarri wrote:

 What I would like to do is to have an hook to the removal of a _v_
 attribute, so that I can perform some action *BEFORE* losing any
 reference to the object itself. I look at the setattr code in
 cPersistence.c and tried also to write my own __setattr__,


__setattr__ isn't the hook you're looking for..


This is better done in a transcation-hooking type way, a la CTM.py in ZOracleDA...

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk


_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to