Re: [SQLObject] The proper way to delete an instance of an SQLObject that is linked as a RelatedJoin

2007-07-10 Thread Daniel Nogradi
Yes, you need to delete everything manually that is referenced by anything that is to be deleted. No, you don't. .destroySelf() in SQLObject 0.7.2 was extended to automatically remove rows from the intermediate table. Does it work? Maybe I'm misunderstanding you but if a foreignkey

Re: [SQLObject] The proper way to delete an instance of an SQLObject that is linked as a RelatedJoin

2007-07-09 Thread Daniel Nogradi
I have two simple SQLObject classes, WebTag and WebTopic that are related using a RelatedJoin: class WebTag(SQLObject): Name = StringCol( alternateID=True) Topics = RelatedJoin('WebTopic') class WebTopic(SQLObject): Name = StringCol( unique=True ) Format

Re: [SQLObject] The proper way to delete an instance of an SQLObject that is linked as a RelatedJoin

2007-07-09 Thread Jon R. Fox
On 7/9/07, Oleg Broytmann [EMAIL PROTECTED] wrote: On Mon, Jul 09, 2007 at 12:09:25PM +0200, Daniel Nogradi wrote: Yes, you need to delete everything manually that is referenced by anything that is to be deleted. No, you don't. .destroySelf() in SQLObject 0.7.2 was extended to

Re: [SQLObject] The proper way to delete an instance of an SQLObject that is linked as a RelatedJoin

2007-07-09 Thread Oleg Broytmann
On Mon, Jul 09, 2007 at 08:28:51AM -0400, Jon R. Fox wrote: I switched to WebTag.get(tag_id_to_delete).destroySelf() This is equivalent to WebTag.delete(tag_id_to_delete) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't