Re: [sqlalchemy] joined load inheritance with extra joins.. possible?

2018-04-03 Thread Mike Bayer
the polymoprhic_load=inline is mostly a typing saver in 1.2, you can get that same effect by putting a with_polymorphic on the base mapper in previous versions. On Tue, Apr 3, 2018 at 10:17 AM, Julien Cigar wrote: > On Tue, Apr 03, 2018 at 10:05:22AM -0400, Mike Bayer

Re: [sqlalchemy] joined load inheritance with extra joins.. possible?

2018-04-03 Thread Julien Cigar
On Tue, Apr 03, 2018 at 10:05:22AM -0400, Mike Bayer wrote: > On Tue, Apr 3, 2018 at 9:59 AM, Julien Cigar wrote: > > On Tue, Apr 03, 2018 at 12:20:53PM +0200, Julien Cigar wrote: > >> On Thu, Mar 22, 2018 at 10:58:56AM +0100, Julien Cigar wrote: > >> > On Tue, Mar 20,

Re: [sqlalchemy] joined load inheritance with extra joins.. possible?

2018-04-03 Thread Mike Bayer
On Tue, Apr 3, 2018 at 9:59 AM, Julien Cigar wrote: > On Tue, Apr 03, 2018 at 12:20:53PM +0200, Julien Cigar wrote: >> On Thu, Mar 22, 2018 at 10:58:56AM +0100, Julien Cigar wrote: >> > On Tue, Mar 20, 2018 at 08:32:14PM -0400, Mike Bayer wrote: >> > > I think it would be

Re: [sqlalchemy] joined load inheritance with extra joins.. possible?

2018-04-03 Thread Julien Cigar
On Tue, Apr 03, 2018 at 12:20:53PM +0200, Julien Cigar wrote: > On Thu, Mar 22, 2018 at 10:58:56AM +0100, Julien Cigar wrote: > > On Tue, Mar 20, 2018 at 08:32:14PM -0400, Mike Bayer wrote: > > > I think it would be a lot easier to have the corresponding translation > > > linked off using

Re: [sqlalchemy] joined load inheritance with extra joins.. possible?

2018-04-03 Thread Mike Bayer
On Tue, Apr 3, 2018 at 6:20 AM, Julien Cigar wrote: > On Thu, Mar 22, 2018 at 10:58:56AM +0100, Julien Cigar wrote: >> On Tue, Mar 20, 2018 at 08:32:14PM -0400, Mike Bayer wrote: >> > I think it would be a lot easier to have the corresponding translation >> > linked off

Re: [sqlalchemy] joined load inheritance with extra joins.. possible?

2018-04-03 Thread Julien Cigar
On Thu, Mar 22, 2018 at 10:58:56AM +0100, Julien Cigar wrote: > On Tue, Mar 20, 2018 at 08:32:14PM -0400, Mike Bayer wrote: > > I think it would be a lot easier to have the corresponding translation > > linked off using relationship(). can you work with that? > Hello Mike, I tried with

Re: [sqlalchemy] joined load inheritance with extra joins.. possible?

2018-03-23 Thread Julien Cigar
On Tue, Mar 20, 2018 at 08:32:14PM -0400, Mike Bayer wrote: > I think it would be a lot easier to have the corresponding translation > linked off using relationship(). can you work with that? I could .. :) I'll make some "helper functions" or maybe a custom Query object, with maybe some

Re: [sqlalchemy] joined load inheritance with extra joins.. possible?

2018-03-20 Thread Mike Bayer
I think it would be a lot easier to have the corresponding translation linked off using relationship(). can you work with that? On Tue, Mar 20, 2018 at 9:19 AM, Julien Cigar wrote: > Hello, > > I have an existing CMS-like application which uses joined table >

[sqlalchemy] joined load inheritance with extra joins.. possible?

2018-03-20 Thread Julien Cigar
Hello, I have an existing CMS-like application which uses joined table inheritance at its core. Basically I have a base class Content from which all other classes (Folder, Document, Event, File, ...) inherit.=20 It works wonderfully well. This is my (Postgre)SQL schema if you are=20