Recently, while working on a class project, I had a small problem with inheritance in Camelot, an excellent framework for rapid application development in Python.
In the application we needed to be able to define different kinds of projects, with similar needs, but which were each available only to some user groups. Single table inheritance sounds like a natural fit for this.
I couldn't find anything in the Camelot documentation about this, but I figured that since it uses SQLAlchemy for its models, I could try the example given there:
class Employee(Base): __tablename__ = 'employee' id = Column(Integer, primary_key=True) name…continue.