Re: [sqlalchemy] ORM/Inheritance: Puzzling behavior when trying to use a subclass in joined table inheritance

2015-07-30 Thread Mike Bayer
you have the same polymorphic_identity used for two different classes: class BluePart(CommonPart): __tablename__ = 'blue_part' __mapper_args__ = {'polymorphic_identity': u'blue_part'} cp_id = Column(Integer, ForeignKey(CommonPart.id), primary_key=True) blue_property =

[sqlalchemy] ORM/Inheritance: Puzzling behavior when trying to use a subclass in joined table inheritance

2015-07-30 Thread Marco
Hi, I have a puzzling situation, exemplified in the included tarball. Basically I need to augment a class with some special behavior that is not present/desirable in the module where the class is defined. However, I find an unexpected type returned by session.query in spite of what I pass to