[sqlalchemy] Re: scalar association_proxy

2011-01-20 Thread AgentOrange
Maybe you can squelch the exception by using a synonym with the descriptor argument to map to a fake property. Oooh, I had not come across this construct before - looks as if it might do exactly what I want. I might even be able to make a decorator that wraps this all up nicely. Thank you

[sqlalchemy] scalar association_proxy

2011-01-19 Thread AgentOrange
Hi Folks, I have been scratching my head over this one all day, so any advice would be greatly appreciated! I have a pretty simple join table setup like this: foo foo_bar bar --- id id_foo (unique) id id_bar

[sqlalchemy] Re: scalar association_proxy

2011-01-19 Thread AgentOrange
Hi ho, Thanks for the swift reply! Did you use uselist=False on foo.bar and the associationproxy? It would nice if you could show some code.http://www.sqlalchemy.org/docs/orm/extensions/associationproxy.html?h... Yes I did. The code is more complicated as it has a bunch of other stuff in