Re: [sqlalchemy] Relationship where relation is set by condition not present in table

2010-08-31 Thread Michael Bayer
On Aug 31, 2010, at 4:41 PM, cd34 wrote: > I have 4 tables: users, jobs, job_items, job_progress > > class User(Base): >__tablename__ = 'xxx_users' > >fb_uid = Column(mysql.MSBigInteger(20, unsigned=True), > primary_key=True) > > class Job(Base): >__tablename__ = 'xxx_jobs' > >

[sqlalchemy] Relationship where relation is set by condition not present in table

2010-08-31 Thread cd34
I have 4 tables: users, jobs, job_items, job_progress class User(Base): __tablename__ = 'xxx_users' fb_uid = Column(mysql.MSBigInteger(20, unsigned=True), primary_key=True) class Job(Base): __tablename__ = 'xxx_jobs' job_id = Column(mysql.MSBigInteger(20, unsigned = True), prima