[sqlalchemy] Re: order of initialization __mapper_args__ 'inherit_condition' and primary key

2012-02-23 Thread lars van gemerden
OK, thanks, the order wasn't the problem, I am using this for the initialization of my classes: dicty= {'__tablename__': name, 'id': Column(Integer, ForeignKey(basename + '.id'), primary_key = True), '__mapper_args__': {'polymorphic_identity': name, 'inherit_condition':

Re: [sqlalchemy] Re: order of initialization __mapper_args__ 'inherit_condition' and primary key

2012-02-23 Thread Michael Bayer
On Feb 23, 2012, at 10:47 AM, lars van gemerden wrote: OK, thanks, the order wasn't the problem, I am using this for the initialization of my classes: dicty= {'__tablename__': name, 'id': Column(Integer, ForeignKey(basename + '.id'), primary_key = True),

[sqlalchemy] Re: order of initialization __mapper_args__ 'inherit_condition' and primary key

2012-02-23 Thread lars van gemerden
Yep, they are the same class (i don't create any class of which i don't have the superclass yet). Thanks for your help; on to the next bug ... On Feb 23, 5:32 pm, Michael Bayer mike...@zzzcomputing.com wrote: On Feb 23, 2012, at 10:47 AM, lars van gemerden wrote: OK, thanks, the