10 Mar
2004
10 Mar
'04
2:56 p.m.
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