E-Mail von Geoffrey Talvola am 2002-03-04:

> I added this item to the WishList in the Webware Wiki.  It sounds like this
> might be pretty easy to fix;

In fact, the three different "deletion" scenarios could be implemented with a
single SQL query, although this could make MiddleKit a bit too SQL-dependant.
But it's simply not necessary to resucitate an Object only to delete it.

onDeleteOther=detach
 "update Class set refId=null where refId=%s"  % delObj.sqlObjRef()

onDeleteOther=cascade
 "delete from Class where refId=%s" % delObj.sqlObjRef()

onDeleteOther=deny
 test for "select count(refId) from Class where refId=%s" % delObj.sqlObjRef()
 returning 0


-- Martin Virtel
[EMAIL PROTECTED]
aim / yahoo messenger mvftd
tel. +49 177 242 2889


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to