> -----Original Message-----
> > If I do:
> > table.delete(id)
> > ... I would need some automatic cleanup actions.
> > Where should I put them?
> 
>    First, you can use row.destroySelf() instead of 
> Table.delete(id). You can also listen to RowDestroySignal event.

It works with events, except some minor problems:
I can not pass a SQLObject method directly to "events.listen". Instead I have 
to pass some other trigger
function and call proper method from that function, to make update/cleanup...
Why is that?

What do you think of introducing a few more SQLObject methods, like:
_update(self, **kw)
_del(self)

Similar to _init, this methods should be called automatically.
>From user perspective, the user could simply override those methods. This is a 
>few lines of code less, then events mechanism (events should still work, of 
>course).

Comments?

regards,
Zoran

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to