Re: [sqlalchemy] Re: associationproxy for one-to-many

2012-04-23 Thread Eric Lemoine
Thanks a lot Mike! This gives me interesting paths to research. For the record, I finally wrote my own association_proxy. This is an hybrid between SQLAlchemy's association_proxy and hybrid_property. class _association_proxy(object): # A specific association proxy implementation def

[sqlalchemy] Re: associationproxy for one-to-many

2012-04-20 Thread Eric Lemoine
On Mon, Apr 16, 2012 at 10:49 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: Hi I'd like to use an associationproxy for a simple many-to-one relationship: class Child(Base):     __tablename__ = 'child'     id = Column(Integer, primary_key=True)     name = Column(Unicode) class

Re: [sqlalchemy] Re: associationproxy for one-to-many

2012-04-20 Thread Michael Bayer
On Apr 20, 2012, at 8:45 AM, Eric Lemoine wrote: On Mon, Apr 16, 2012 at 10:49 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: Hi I'd like to use an associationproxy for a simple many-to-one relationship: class Child(Base): __tablename__ = 'child' id = Column(Integer,

Re: [sqlalchemy] Re: associationproxy for one-to-many

2012-04-20 Thread Eric Lemoine
On Fri, Apr 20, 2012 at 9:28 PM, Michael Bayer mike...@zzzcomputing.com wrote: On Apr 20, 2012, at 8:45 AM, Eric Lemoine wrote: On Mon, Apr 16, 2012 at 10:49 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: Hi I'd like to use an associationproxy for a simple many-to-one relationship: