Re: [sqlalchemy] Problem with class mixin hierarchy in joint table inheritance

2011-07-23 Thread Michael Bayer
On Jul 23, 2011, at 7:54 AM, Fayaz Yusuf Khan wrote: >> >> >> When C inherits from CMixin and Timeline, Python's method resolution is >> going to put TMixin after Timeline, that is: >> >> (, , > '__main__.Timeline'>, , > 'sqlalchemy.ext.declarative.Base'>, , > 'object'>) > Maybe, joint-table in

Re: [sqlalchemy] Problem with class mixin hierarchy in joint table inheritance

2011-07-23 Thread Fayaz Yusuf Khan
On Thursday, July 21, 2011 09:27:21 PM Michael Bayer wrote: > On Jul 21, 2011, at 10:48 AM, Michael Bayer wrote: > > On Jul 21, 2011, at 2:11 AM, Fayaz Yusuf Khan wrote: > >> Hi, > >> I have this declarative table model: > >> http://paste.pound-python.org/show/9857/ > > > > The short answer is you

Re: [sqlalchemy] Problem with class mixin hierarchy in joint table inheritance

2011-07-21 Thread Michael Bayer
On Jul 21, 2011, at 10:48 AM, Michael Bayer wrote: > > On Jul 21, 2011, at 2:11 AM, Fayaz Yusuf Khan wrote: > >> Hi, >> I have this declarative table model: >> http://paste.pound-python.org/show/9857/ > > The short answer is you can't do it that way right now. The "user" and > "timestamp" c

Re: [sqlalchemy] Problem with class mixin hierarchy in joint table inheritance

2011-07-21 Thread Michael Bayer
On Jul 21, 2011, at 2:11 AM, Fayaz Yusuf Khan wrote: > Hi, > I have this declarative table model: > http://paste.pound-python.org/show/9857/ The short answer is you can't do it that way right now. The "user" and "timestamp" columns of C can't get assigned to the Table by declarative because

[sqlalchemy] Problem with class mixin hierarchy in joint table inheritance

2011-07-20 Thread Fayaz Yusuf Khan
Hi, I have this declarative table model: http://paste.pound-python.org/show/9857/ == from sqlalchemy import Column, String, ForeignKeyConstraint, Integer from sqlalchemy.ext.declarative import declarative_base, declared_attr class TableName(