Storing object from same table

Timo <[email protected]>
Newsgroups gmane.comp.python.sqlobject
Message-ID <CADFAQUK0wADYviW-icHAeGns7U_cWGMKWawDrTdmoE-wEGgQ8A@mail.gmail.com>
Hello, sorry if I use the wrong terminology, I just started with SQLObject
and databases in general.

This is my current class:
class Person(SQLObject):
    name = StringCol(notNone=True)
    father = StringCol(default='')
    mother = StringCol(default='')

This stores the names for the person's father and mother, but when I want to
access their data, I need to fetch their names first and then lookup their
objects from the database. What I actually want, is that father and mother
are references to their own Person object. Is something like this possible?
I read about SingleJoin/MultipleJoin, but it always references to another
table.

Cheers,
Timo

------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev

_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.