[sqlalchemy] Re: How to specify the remote side in a self-referential relationship on one column only?

2011-01-06 Thread Daniel Gerber
Thanks for your answer. Eventually I settled for a standard property to just access children. And the tree iterator --the reason for trying to tweak this relationship in the first place-- figures out the relations by itself, as I couldn't extend your solution to work with lazy='subquery' and

Re: [sqlalchemy] case_convention in db python code

2011-01-06 Thread Petr Kobalíček
Hi Michael, I didn't find an example of this macro feature so I'm going to stay with my solution at this time:) Thank you anyway! Petr On Wed, Jan 5, 2011 at 9:52 PM, Michael Bayer mike...@zzzcomputing.com wrote: You can apply the macro at the Column, Table, or mapper() level, but yeah

[sqlalchemy] Confusion regarding how sessions affect mapped objects (plus a gc oddity)

2011-01-06 Thread Russ
I'm running into some issues with objects being attached to sessions that I don't quite understand. Basically, if I create some objects, add them to a session, commit, then turf the session (or at least let it fall out of scope), one expectation I have is that I will still be able to access the