Re: [sqlalchemy] Re: Polymorphic across foreign key

2010-08-23 Thread Michael Bayer
On Aug 22, 2010, at 8:45 AM, Eduardo Robles Elvira wrote: On May 15 2008, 6:27 pm, Michael Bayer mike...@zzzcomputing.com wrote: On May 15, 2008, at 12:12 PM, J. Cliff Dyer wrote: How can I use this field for polymorphism? Is it possible? polymorphicdiscriminators are currently

[sqlalchemy] Re: Polymorphic across foreign key

2010-08-22 Thread Eduardo Robles Elvira
On May 15 2008, 6:27 pm, Michael Bayer mike...@zzzcomputing.com wrote: On May 15, 2008, at 12:12 PM, J. Cliff Dyer wrote: How can I use this field for polymorphism?  Is it possible? polymorphicdiscriminators are currently table-local scalar columns.   So if you had a many-to-one of

[sqlalchemy] Re: Polymorphic across foreign key

2008-05-15 Thread J. Cliff Dyer
On Thu, 2008-05-15 at 11:24 -0400, J. Cliff Dyer wrote: I'm trying to implement polymorphic inheritance using the sqlalchemy.ext.declarative, but the field that I want to use for the polymorphic_on is not in my polymorphic base table, but at the other end of a many-to-one relationship. We

[sqlalchemy] Re: Polymorphic across foreign key

2008-05-15 Thread J. Cliff Dyer
On Thu, 2008-05-15 at 11:30 -0400, J. Cliff Dyer wrote: On Thu, 2008-05-15 at 11:24 -0400, J. Cliff Dyer wrote: I'm trying to implement polymorphic inheritance using the sqlalchemy.ext.declarative, but the field that I want to use for the polymorphic_on is not in my polymorphic base table,

[sqlalchemy] Re: Polymorphic across foreign key

2008-05-15 Thread Michael Bayer
On May 15, 2008, at 12:12 PM, J. Cliff Dyer wrote: How can I use this field for polymorphism? Is it possible? polymorphic discriminators are currently table-local scalar columns. So if you had a many-to-one of discriminators, youd currently have to encode the discriminator to the

[sqlalchemy] Re: Polymorphic across foreign key

2008-05-15 Thread J. Cliff Dyer
On Thu, 2008-05-15 at 12:27 -0400, Michael Bayer wrote: On May 15, 2008, at 12:12 PM, J. Cliff Dyer wrote: How can I use this field for polymorphism? Is it possible? polymorphic discriminators are currently table-local scalar columns. So if you had a many-to-one of