Re: [sqlalchemy] Re: Roundin' up the children!

2010-05-27 Thread Michael Bayer
On May 26, 2010, at 8:01 PM, ObjectEvolution wrote: Thanks for the input Michael. I think the polymorphism is messing things up...just a hunch. Your suggestion didn't work but this ended up working: 'children': relation(Category,

[sqlalchemy] Re: Roundin' up the children!

2010-05-27 Thread ObjectEvolution
Ah, I see now, that makes sense. I did mean a second mapper but when I wrote that I didn't realize I could actually do that. After reading the docs, I know now ;-) Thanks again for your help Michaelgreat stuff you've got here. Cheers, Jon On May 27, 7:51 am, Michael Bayer

[sqlalchemy] Re: Roundin' up the children!

2010-05-26 Thread ObjectEvolution
Thanks for the input Michael. I think the polymorphism is messing things up...just a hunch. Your suggestion didn't work but this ended up working: 'children': relation(Category, primaryjoin=and_(TABLES.CATEGORY.c.id==TABLES.CATEGORY.c.parent_id, TABLES.BASE.c.deleted==False),