[sqlalchemy] Re: In a many to many relationship how to access some properties of that relationship

2007-10-25 Thread Barry Hart
No, the association proxy would be used if you want to let users directly access movies or vice versa. To get the score, you can define a mapper for movie_vote table and define relationships between it and users and movies. Barry - Original Message From: Jason [EMAIL PROTECTED] To:

[sqlalchemy] Re: In a many to many relationship how to access some properties of that relationship

2007-10-24 Thread Michael Bayer
It would be cool to have something like User.movies[0].score, User.movies[1].score .. etc. is this something I would want to use the association proxy for? yes, this in conjunction with the association object pattern is what youre looking for.