[storm] object lifecycle callbacks

Christopher Doyle blaimue at gmail.com
Fri Oct 26 02:19:45 BST 2007


That's just a holdover from my RoR experience.  I'm talking about
removing an object (or row, if you like) from the database, and I need
a callback that's run before the object is removed.  That will let me
remove child objects in other tables.  Unless there's a built-in way
of removing children...?

Thanks,
Chris


On 10/25/07, Gustavo Niemeyer <gustavo at niemeyer.net> wrote:
> Hello Christopher,
>
> > Is there somewhere I can find a list of object-lifecycle callbacks?
> > Especially some sort of before_destroy hook.
>
> When would that hook be called?  "Destroy" gives me the feeling of
> deallocation.  If that's the case, the normal Python way to do it
> still applies (__del__, or weakref callback).
>
> --
> Gustavo Niemeyer
> http://niemeyer.net
>


-- 
Chris Doyle
339.225.0975



More information about the storm mailing list