[sqlalchemy] linking one table/class to two other tables/classes

2015-03-19 Thread Tamas Hegedus
Hi, I think that I try to setup a non-usual relationship. I would like to link two classes to one class, like this: # notes: # pseudo code # I do not need to know the parent of a given History object class A(DeclarativeBase): history = Column(Integer, ForeignKey('history.h_id')) myvar =

[sqlalchemy] Re: subclassing Table

2008-07-17 Thread Tamas Hegedus
Thanks a lot! I think your suggestion will be ok for me for now. Have a good day, tamas On Thu, Jul 17, 2008 at 9:55 AM, Michael Bayer <[EMAIL PROTECTED]> wrote: > > > On Jul 16, 2008, at 4:43 PM, Tamas wrote: > > > > > Hi, > > > > I am not a professional coder; hobby-like thing. > > I would like