[sqlalchemy] Problem with list comprehension and composite association proxies

2014-03-11 Thread Brian Findlay
Hi, Running python 3.3.4, pyramid 1.5b1, sqlalchemy 0.9.3. A couple of months ago Mike helped to set up composite association proxies in my model ( https://groups.google.com/forum/#!searchin/sqlalchemy/composite$20association$20object/sqlalchemy/kxU-FaDGO2Q/b8ScnTXvPyIJ). I'm applying this

Re: [sqlalchemy] Problem with list comprehension and composite association proxies

2014-03-11 Thread Michael Bayer
can you please provide a working fixture of this form: user = User() occupations = [Occupation(title='o1'), Occupation(title='o2'), Occupation(title='o3')] interests = [Interest(name='i1'), Interest(name='i2'), Interest(name='i3')] user.interests['i1'] = interests[0]

Re: [sqlalchemy] Problem with list comprehension and composite association proxies

2014-03-11 Thread Brian Findlay
Thanks, Mike. I found some records in the occupations table without interest values in the occupations_interests table, explaining the KeyErrors. Facepalm. -Brian -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To unsubscribe from this group