Yes, I tried mix-in approach, and it works, thanks.
From: sqlalchemy@googlegroups.com [mailto:sqlalchemy@googlegroups.com] On
Behalf Of Robert Forkel
Sent: 20 ноября 2012 г. 17:09
To: sqlalchemy@googlegroups.com
Subject: Re: [sqlalchemy] Inheriting a functionality in SQLA
As far as i know
Thanks for the clarification, it works now.
From: sqlalchemy@googlegroups.com [mailto:sqlalchemy@googlegroups.com] On
Behalf Of Michael Bayer
Sent: 21 ноября 2012 г. 3:58
To: sqlalchemy@googlegroups.com
Subject: Re: [sqlalchemy] Inheriting a functionality in SQLA
On Nov 20, 2012, at 4
As far as i know each declarative Base has its own metadata registry. You
are using two. Why not use multiple mixins to inherit the columns?
Am 20.11.2012 10:31 schrieb AlexVhr viho...@gmail.com:
I'm trying to incapsulate some functionality (some columns mainly) into
base classes to inherit my
On Nov 20, 2012, at 4:31 AM, AlexVhr wrote:
I'm trying to incapsulate some functionality (some columns mainly) into base
classes to inherit my models from them. The setup looks like this:
class EntityTemplate():
@declared_attr
def __tablename__(cls):
return