Re: [SQLObject] Nested Table/Foreign Key to same table

2008-07-24 Thread Oleg Broytmann
On Thu, Jul 24, 2008 at 09:56:01AM +0200, dimi duj wrote: > I'm new to SQLObject so my question would be probably stupid... ;) Welcome! Don't be too afraid. (-: > I'm trying to do a foreign key to the same table but I've got an error > > Here's an example: > > class NestedTest(SQLObject): >

[SQLObject] Nested Table/Foreign Key to same table

2008-07-24 Thread dimi duj
Hi , I'm new to SQLObject so my question would be probably stupid... ;) I'm trying to do a foreign key to the same table but I've got an error Here's an example: class NestedTest(SQLObject): attr1 = StringCol() attr2 = StringCol() parent = ForeignKey('NestedTest') #NestedTest.cre