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] Types not interpreted correctly with fromDatabase=True

2007-07-09 Thread Oleg Broytmann
On Fri, Jul 06, 2007 at 01:55:19PM -0600, Brian Cole wrote: Little confusing, which patch tracker to use? Whatever you prefer. If you have already registered at SF - you are probably accustomed to the SF tracker; if you have used Trac before - use Trac. Oleg. -- Oleg Broytmann

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