2014-12-11 17:28 GMT-03:00 dewey <de...@pathoz.com>: > > Oh doh...that is perfect!!! > > Except for now, I either need to merge my __mapper_args__ from each table > to my base __mapper_args__ > > Or is there a way to add to __mapper_args__ in the base DYNAMICALLY based > on some property in the class? > That would mean I could automate the whole process.. > > You decorate your __mapper_args__ with declared_attr (see http://docs.sqlalchemy.org/en/rel_0_9/orm/extensions/declarative.html#sqlalchemy.ext.declarative.declared_attr) and build your required __mapper_args__ according to the class you are in (see the second example in the docs I just linked).
-- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.