[sqlalchemy] re: tightening contraints on whats allowed in mixins

2010-03-27 Thread Chris Withers
Hi Michael, I read http://www.sqlalchemy.org/trac/ticket/1751 with some curiousity. My take on declarative mixins was that _as_declarative should basically accumulate everything from the bases as if it were in the class itself and then let _as_declarative behave exactly as it usually did on

[sqlalchemy] Re: tightening contraints on whats allowed in mixins

2010-03-27 Thread Michael Bayer
On Mar 27, 2010, at 12:31 PM, Chris Withers wrote: Hi Michael, I read http://www.sqlalchemy.org/trac/ticket/1751 with some curiousity. My take on declarative mixins was that _as_declarative should basically accumulate everything from the bases as if it were in the class itself and

[sqlalchemy] Re: tightening contraints on whats allowed in mixins

2010-03-27 Thread Chris Withers
Michael Bayer wrote: We can fine tune the restriction to be more about specifically what was in that ticket, i.e. BaseClass(Base) some column Mixin some column with foreign key to BaseClass.some column ActualClass(BaseClass) some column that overrides BaseClass.some column