Re: [sqlalchemy] sqlalchemy - double polymorphic inheritance problem

2010-08-29 Thread Michael Bayer
On Aug 17, 2010, at 6:23 AM, jean-philippe serafin wrote: ok, everything is working as expected thanks, SQLAlchemy just rocks! I've added a patch in ticket 1895: http://www.sqlalchemy.org/trac/ticket/1895 The patch passes all tests, and will most likely be applied for SQLAlchemy 0.7

Re: [sqlalchemy] sqlalchemy - double polymorphic inheritance problem

2010-08-17 Thread jean-philippe serafin
ok, thanks for your aswers, I'll try it tonight. 2010/8/17 Michael Bayer mike...@zzzcomputing.com On Aug 16, 2010, at 4:20 AM, jean-philippe serafin wrote: AbstractA is AbstractB base class. AbstractB is ClassA base class Everything work fine in this case. I just

Re: [sqlalchemy] sqlalchemy - double polymorphic inheritance problem

2010-08-17 Thread jean-philippe serafin
ok, everything is working as expected thanks, SQLAlchemy just rocks! 2010/8/17 jean-philippe serafin serafi...@gmail.com ok, thanks for your aswers, I'll try it tonight. 2010/8/17 Michael Bayer mike...@zzzcomputing.com On Aug 16, 2010, at 4:20 AM, jean-philippe serafin wrote:

Re: [sqlalchemy] sqlalchemy - double polymorphic inheritance problem

2010-08-16 Thread jean-philippe serafin
AbstractA is AbstractB base class. AbstractB is ClassA base class Everything work fine in this case. I just want to set 'polymorphic_identity' on each inheritance level if I set by hand : update abstract_a set class_name = 'class_a' : AbstractA.query.first() give me back a

Re: [sqlalchemy] sqlalchemy - double polymorphic inheritance problem

2010-08-16 Thread Michael Bayer
On Aug 16, 2010, at 4:20 AM, jean-philippe serafin wrote: AbstractA is AbstractB base class. AbstractB is ClassA base class Everything work fine in this case. I just want to set 'polymorphic_identity' on each inheritance level if I set by hand : update abstract_a

[sqlalchemy] sqlalchemy - double polymorphic inheritance problem

2010-08-15 Thread jean-philippe serafin
Hi, I've got a class mapping with two polymorphic inheritance : class AbstractA(Base): __tablename__ = abstract_a id = Column(Integer, primary_key=True) class_name = Column('class_name', String(50)) __mapper_args__ = { 'polymorphic_on': class_name, } #some

Re: [sqlalchemy] sqlalchemy - double polymorphic inheritance problem

2010-08-15 Thread Michael Bayer
On Aug 15, 2010, at 6:52 AM, jean-philippe serafin wrote: Hi, I've got a class mapping with two polymorphic inheritance : class AbstractA(Base): __tablename__ = abstract_a id = Column(Integer, primary_key=True) class_name = Column('class_name', String(50))