Re: [sqlalchemy] Setting entity related object via related attribute (using init_scalar event)

2018-09-06 Thread Mike Bayer
OK the use case for the init_scalar, and the docs/example do a bad job of explaining this, is to sync up the default value with that of a Core-level default generator.That's not clear so I should improve those docs. On Thu, Sep 6, 2018 at 10:10 AM, Mike Bayer wrote: > On Thu, Sep 6, 2018 at 4

Re: [sqlalchemy] Setting entity related object via related attribute (using init_scalar event)

2018-09-06 Thread Mike Bayer
On Thu, Sep 6, 2018 at 4:21 AM, Tomáš Sandrini wrote: > Hi, > > I am writing a library where I need to hide (for normal usage, since that > will be 90% use case) the existence of a Parent object, > basically limiting it just to one property and then set the Parent manually > within the Child class

[sqlalchemy] Setting entity related object via related attribute (using init_scalar event)

2018-09-06 Thread Tomáš Sandrini
Hi, I am writing a library where I need to hide (for normal usage, since that will be 90% use case) the existence of a Parent object, basically limiting it just to one property and then set the Parent manually within the Child class through this one property. An obvious solution to this would