On Mon, 18 Sep 2006 20:29:22 -0400 Michael Bayer <[EMAIL PROTECTED]> wrote:
> youre looking for a self-referential mapper. there are three > examples of this in... Thanks I'll check those out! My current solution is one big huge duh that I can't believe I didn't think of before. class Node: def kits(self,session): return session.query(Node).select(Node.c.parent==self.id) If there is an automagic way to do that with a self-referential mapper though I'll be sure to adopt that. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users