Re: [sqlalchemy] Object delegation and SA inheritance

2012-03-05 Thread Michael Bayer
On Mar 3, 2012, at 10:03 AM, Peter Erickson wrote: > Is is possible to set the polymorphic_on attribute on an object that is > not directly tied to a db table, but has access to the db attribute via > delegation? > > I have a generic Product class that processes an XML to obtain its > generic a

[sqlalchemy] Object delegation and SA inheritance

2012-03-05 Thread Peter Erickson
Is is possible to set the polymorphic_on attribute on an object that is not directly tied to a db table, but has access to the db attribute via delegation? I have a generic Product class that processes an XML to obtain its generic attributes (uuid, type, etc). Afterwards, the product is encapsula