[Zope-dev] Question about _v_ attributes and database connections
Chris Withers
lists at simplistix.co.uk
Wed Mar 10 09:56:33 EST 2004
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
More information about the Zope-Dev
mailing list