[sqlalchemy] Re: TypeError when appending to Associationproxy

2009-11-13 Thread Matthew R
Excellent, thank you. A few minutes after I posted I was able to figure out the NewsOrg.__init__ method fix, but the creator lambda argument to association_proxy is much cleaner. Thanks again! On Nov 13, 2:45 pm, Conor wrote: > Matthew R wrote: > > Hello, > > > Just getting started with associat

[sqlalchemy] Re: TypeError when appending to Associationproxy

2009-11-13 Thread Conor
Matthew R wrote: > Hello, > > Just getting started with association proxy and having trouble making > it work. The lookups seem to work fine but when I try to add a new > element to the association, I get "TypeError: __init__() takes exactly > 1 argument (2 given)". Code & test case below, I've le