Re: [sqlalchemy] upgrading code with prop.backref from 0.5 - 0.6

2010-08-24 Thread Alessandro Dentella
On Sat, Aug 21, 2010 at 01:45:48PM -0400, Michael Bayer wrote: columns in a property column = prop.columns[0] props = [] for pr in mapper.iterate_properties: if isinstance(pr, properties.RelationProperty): if pr.direction.name in ('MANYTOONE',):

[sqlalchemy] upgrading code with prop.backref from 0.5 - 0.6

2010-08-19 Thread sandro dentella
Hi, Let's start with the simple example based on movie/director example class Director(Base): __tablename__ = 'director' id = Column(Integer, primary_key=True) last_name = Column(String(60), nullable=False) movies = relation('Movie',