Re: [sqlalchemy] Sub-classing declarative classes

2014-06-11 Thread Simon King
On Tue, Jun 10, 2014 at 8:47 PM, Noah Davis neopygmal...@gmail.com wrote: Hi, I've been banging my head against this one for several days now, and aside from a three year-old post here, I've come up empty. I've got a python module that defines a set of Declarative models that several

[sqlalchemy] Sub-classing declarative classes

2014-06-10 Thread Noah Davis
Hi, I've been banging my head against this one for several days now, and aside from a three year-old post here, I've come up empty. I've got a python module that defines a set of Declarative models that several other applications may use. What I'd like is some way to for the individual

Re: [sqlalchemy] Sub-classing declarative classes

2014-06-10 Thread Mike Bayer
On Tue Jun 10 15:47:00 2014, Noah Davis wrote: some_model.py --- [SQLA setup of Base class here] class Alice(Base): __tablename__ = 'alice' id = Column(Integer, primary_key=True) value = Column(String) class Bob(Base): __tablename__ = 'bob'