Re: [sqlalchemy] KeyError when adding objects using an association proxy

2012-06-20 Thread Michael Bayer
great, glad my lack of time to get to this ultimately got it solved ;) On Jun 20, 2012, at 10:25 AM, Stephan Hügel wrote: > Mike, > > no-dep python file and stack trace are at > https://gist.github.com/174a76acf27ffef1b66d > In order to reproduce the issue, I query for two objects: > tab = Tab

Re: [sqlalchemy] KeyError when adding objects using an association proxy

2012-06-20 Thread Stephan Hügel
> > Mike, > > no-dep python file and stack trace are at > https://gist.github.com/174a76acf27ffef1b66d > In order to reproduce the issue, I query for two objects: > tab = Tablet.query.first() > cor = Correspondent.query.first() > > If I do tab.correspondents or cor.tablets I just get back an emp

Re: [sqlalchemy] KeyError when adding objects using an association proxy

2012-06-19 Thread Stephan Hügel
On Tuesday, 19 June 2012 00:14:57 UTC+1, Michael Bayer wrote: > > At the very least I would need a full stack trace, exactly how you are > appending objects, and preferably the means to actually run it. Nothing > is obviously wrong.Can you distill your failure into a no-dependencies > .py

Re: [sqlalchemy] KeyError when adding objects using an association proxy

2012-06-18 Thread Michael Bayer
At the very least I would need a full stack trace, exactly how you are appending objects, and preferably the means to actually run it. Nothing is obviously wrong.Can you distill your failure into a no-dependencies .py file? For example I don't have GlyphMixin here, the formatting for __in

[sqlalchemy] KeyError when adding objects using an association proxy

2012-06-18 Thread Stephan Hügel
I have two objects, which I'm joining using an association proxy: (doing this using Flask-sqlalchemy, so Base, engine etc are implicit) class Correspondent(db.Model, GlyphMixin): # PK column and tablename etc. come from the mixin name = db.Column(db.String(100), nullable=False, unique=True