[sqlalchemy] Re: polymorphic inheritance with multiple foreign keys

2007-08-21 Thread Patrick Wagstrom
On 8/21/07, Michael Bayer <[EMAIL PROTECTED]> wrote: > On Aug 21, 2007, at 6:10 PM, Patrick Wagstrom wrote: > > Unfortunately, when creating the mapper, I can't specify an > > onclause to the mapper. Any help on how I would accomplish this > > and get m

[sqlalchemy] polymorphic inheritance with multiple foreign keys

2007-08-21 Thread Patrick Wagstrom
Howdy, I'm trying to create a fairly generic graph structure in a database using SQLAlchemy. Basically, I'd like to create a root object of class "Element", and have everything inherit from Element. Connections between Elements are done through a generic class "Link", which is an Element itself,