On Feb 14, 2013, at 5:18 PM, ru...@yahoo.com wrote:
What is the best way to get the .Person attribute updated to match
a new value assigned to .person?
items = session.query(Task).order_by(Task.id).all()
print ('before change:\n', str(items[0].t2p_[0]), '\n Person =',
I have two tables, task and person, and m:m join table between
them, t2p. The Task object has a relationship, t2p_ that is
a list of all the associated t2p rows. Each of those has a Person
attribute for the associated person row.
I get a table row. I then change the t2p_[n].person attribute