[sqlalchemy] How to write and access attribute in many to many table

2011-03-14 Thread Christian Démolis
Hi all, I have a question about many to many Table containing attribute. How to access and write Max attribute in many to many table ? I already read that but i try to not use mapper and stay in declarative mode which is more user friendly :)

[sqlalchemy] Re: How to write and access attribute in many to many table

2011-03-14 Thread Eric Ongerth
Nothing prevents the use of associationproxy with Declarative. On Mar 14, 3:26 am, Christian Démolis christiandemo...@gmail.com wrote: Hi all, I have a question about many to many Table containing attribute. How to access and write Max attribute in many to many table ? I already read that

Re: [sqlalchemy] How to write and access attribute in many to many table

2011-03-14 Thread Michael Bayer
On Mar 14, 2011, at 6:26 AM, Christian Démolis wrote: Hi all, I have a question about many to many Table containing attribute. How to access and write Max attribute in many to many table ? I already read that but i try to not use mapper and stay in declarative mode which is more user

[sqlalchemy] Re: InvalidRequestError

2011-03-14 Thread Ajay
Thanks Mike for your quick response. I removed the zope.sqlalchemy extension and I am no longer getting the zope error. Since we are using a scoped_session, we don't think it's a threading issue although we are running in a multi-threaded env. I am trying to create this exception to occur in my

[sqlalchemy] two-way attribute relationships through associationproxy

2011-03-14 Thread Eric Ongerth
from sqlalchemy import Unicode, Integer, Column, create_engine, ForeignKey from sqlalchemy.orm import relationship, Session from sqlalchemy.orm.collections import MappedCollection from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.associationproxy import association_proxy