[sqlalchemy] Re: Trouble detaching all objects with relationships intact

2010-12-07 Thread Ian Thompson
On Dec 6, 5:53 pm, Michael Bayer mike...@zzzcomputing.com wrote: On Dec 6, 2010, at 11:52 AM, Ian Thompson wrote: On Dec 6, 4:49 pm, Ian Thompson quorn...@gmail.com wrote: I've generated a test data set and then want to have all of the created objects and relationships available

[sqlalchemy] Joinedload with association proxies

2010-12-06 Thread Ian Thompson
Hi, Apologies if this has been answered or doesn't make sense, I'm still just getting started here. Passing in an association proxy to the joinedload function doesn't seem to work, I have to use the original name. Is this the expected behaviour or am I doing something stupid? class

[sqlalchemy] Trouble detaching all objects with relationships intact

2010-12-06 Thread Ian Thompson
I've generated a test data set and then want to have all of the created objects and relationships available for reference easily. To avoid possible pollution of this fixture I want to detach the objects from the sessions to avoid them getting any updates applied. To do this I am attempting to

[sqlalchemy] Re: Trouble detaching all objects with relationships intact

2010-12-06 Thread Ian Thompson
On Dec 6, 4:49 pm, Ian Thompson quorn...@gmail.com wrote: I've generated a test data set and then want to have all of the created objects and relationships available for reference easily. To avoid possible pollution of this fixture I want to detach the objects from the sessions to avoid them