Re: [sqlalchemy] Using __getattr__ and __setattr__ with sqlalchemy

2012-09-07 Thread Michael Bayer
On Sep 6, 2012, at 6:05 PM, Jacob Biesinger wrote: > Hi all, > > Are there any best practices/caveats for overloading attribute access with > declarative sqlalchemy? I feel like the checks in setattr and getattr are > very hacky and are occasionally giving me strange surprises... > > from sq

Re: [sqlalchemy] Many-to-many secondaryjoin with filter

2012-09-07 Thread Michael Bayer
On Sep 6, 2012, at 6:55 PM, Kuba Dolecki wrote: > Hello, > > I have been struggling for a few hours with the following issue. First, the > models: > > stack_resources = db.Table('stack_resources', > db.Column('stack_id', db.Integer, db.ForeignKey('stack.id')), > db.Column('resource_id'