Re: [sqlalchemy] primaryjoin and remote/foreign sides

2019-06-19 Thread Mike Bayer
On Wed, Jun 19, 2019, at 10:50 AM, Julien Cigar wrote: > That's the (almost) final version if you're interrested: > https://gist.github.com/silenius/568aca7545e1bc0400b53b6ec157807d great, I can't run it, so are you still getting any warnings about properties being overwritten ? > > On

Re: [sqlalchemy] primaryjoin and remote/foreign sides

2019-06-19 Thread Julien Cigar
That's the (almost) final version if you're interrested: https://gist.github.com/silenius/568aca7545e1bc0400b53b6ec157807d On Wednesday, June 19, 2019 at 4:44:55 PM UTC+2, Julien Cigar wrote: > > > > On Wednesday, June 19, 2019 at 4:09:55 PM UTC+2, Mike Bayer wrote: >> >> >> >> On Wed, Jun 19,

Re: [sqlalchemy] primaryjoin and remote/foreign sides

2019-06-19 Thread Julien Cigar
On Wednesday, June 19, 2019 at 4:09:55 PM UTC+2, Mike Bayer wrote: > > > > On Wed, Jun 19, 2019, at 4:48 AM, Julien Cigar wrote: > > Thank you very much, it almost works ! > > I have one minor issue, as translation_cls is involved in joined load > inheritance the select([translation_cls], ...)

Re: [sqlalchemy] primaryjoin and remote/foreign sides

2019-06-19 Thread Julien Cigar
adding use_labels=True to the select fixed the problem :) On Wednesday, June 19, 2019 at 10:47:57 AM UTC+2, Julien Cigar wrote: > > Thank you very much, it almost works ! > > I have one minor issue, as translation_cls is involved in joined load > inheritance the select([translation_cls], ...)

Re: [sqlalchemy] primaryjoin and remote/foreign sides

2019-06-19 Thread Mike Bayer
On Wed, Jun 19, 2019, at 4:48 AM, Julien Cigar wrote: > Thank you very much, it almost works ! > > I have one minor issue, as translation_cls is involved in joined load > inheritance the select([translation_cls], ...) results in: > > SELECT > content_translation.language_id AS language_id,

Re: [sqlalchemy] primaryjoin and remote/foreign sides

2019-06-19 Thread Julien Cigar
Thank you very much, it almost works ! I have one minor issue, as translation_cls is involved in joined load inheritance the select([translation_cls], ...) results in: SELECT content_translation.language_id AS language_id,

Re: [sqlalchemy] testing that a session is committed correctly

2019-06-19 Thread Chris Withers
On 10/06/2019 15:40, Mike Bayer wrote: Okay, so sounds like in an ideal world, the framework should provide a way to sub out that transaction middleware when unit testing and then for functional testing, I just need to fall back to dropping everything in the db, or having a fresh db created