If it's an object in an objectmanager, you can define a
manage_beforeDelete() method on it (see ObjectManager.py).

How are you destroying it?

[EMAIL PROTECTED] wrote:
> 
> Is there an method that I can use as a hook when an object is destroyed? (Im
> trying to save some _v_ data prior to destruction. Ive tried __del__ but
> this doesnt seem to get called.
> 
> Thanks.
> 
> --
>   Andy McKay, Developer.
>   ActiveState.
> 
> _______________________________________________
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )

-- 
Chris McDonough
Digital Creations, Publishers of Zope
http://www.zope.org

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

Reply via email to