[sqlalchemy] How do I create a child class from a parent class in SQLAlchemy's Joined Table Inheritance?

2012-10-29 Thread Alex Chamberlain
I posted this on StackOverflow (http://stackoverflow.com/q/13109085/961353), but it received no answers so I'm hoping I'll have more luck here. I'm developing a small database where there are far more People than Users, so currently have the following Model.(I'm using Flask-SQLAlchemy and db

Re: [sqlalchemy] How do I create a child class from a parent class in SQLAlchemy's Joined Table Inheritance?

2012-10-29 Thread Alex Chamberlain
So, there's no way to upgrade a Person to a User within the normal ORM? Thanks, Alex On Oct 29, 2012 3:00 PM, Michael Bayer mike...@zzzcomputing.com wrote: On Oct 29, 2012, at 5:06 AM, Alex Chamberlain wrote: I posted this on StackOverflow (http://stackoverflow.com/q/13109085/961353

Re: [sqlalchemy] How do I create a child class from a parent class in SQLAlchemy's Joined Table Inheritance?

2012-10-29 Thread Alex Chamberlain
use composition for that. On Oct 29, 2012, at 11:43 AM, Alex Chamberlain wrote: So, there's no way to upgrade a Person to a User within the normal ORM? Thanks, Alex On Oct 29, 2012 3:00 PM, Michael Bayer mik...@zzzcomputing.comjavascript: wrote: On Oct 29, 2012, at 5:06 AM, Alex