works in 0.7.3. will also work in 0.7.4 Just not the current tip at the moment.
the regular mapper() setup is equivalent (see http://www.sqlalchemy.org/docs/orm/mapper_config.html#classical-mappings) : discriminator_expr = case(...) mapper(Person, ..., polymorphic_on=discriminator_expr, polymorphic_identity='person', properties={ 'discriminator':column_property(discriminator_expr) }) @event.listens_for(Person, ...) ... note the "event" part of this is just to set the "type" column automatically, it's not required. On Dec 8, 2011, at 12:49 PM, kris wrote: > Does this mean I can use this in 7.3? or Do I need to download tip? > > Also could you show me how this would work with old style mapper(...) s > instead of declarative_base? > > Thanks, > Kris > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/sqlalchemy/-/i2RCGGlPyKsJ. > To post to this group, send email to sqlalchemy@googlegroups.com. > To unsubscribe from this group, send email to > sqlalchemy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.