Hi, I'm doing something similar and ended up giving all columns contributed by a mixin a common prefix, and have the copy method loop over all columns of an object, picking out the right ones. Regards Robert
Am 26.11.2011 15:26 schrieb "Mark Erbaugh" <m...@microenh.com>: > I'm using a ColumnMixin to have a subset of columns common in two tables. > Is there an easy way to populate the common columns in one descendent > table with the corresponding columns in a row of the other descendent > tables, and can this be a method of the ColumnMixin class? Ideally, I'd > like the copy method to dynamically respond to changes in the ColumnMixin > class (i.e. if I add a column defiinition to the mixin, I don't want to > have to modify the copy method). > > Thanks, > Mark > > -- > 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. > > -- 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.