Re: [sqlalchemy] Re: Advice on cascading polymorphic inheritance

2019-08-23 Thread Javier Martínez
Sorry, the code was too big, so I leave here the file. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full

Re: [sqlalchemy] Re: Advice on cascading polymorphic inheritance

2019-08-23 Thread Javier Martínez
ormat(entry_exist.__class__)) print(dict(entry_exist.__dict__)) On Thursday, August 22, 2019 at 8:16:36 PM UTC+2, Mike Bayer wrote: > > > > On Thu, Aug 22, 2019, at 2:06 PM, Javier Martínez wrote: > > Thanks for the answer Mike. > If I understand right, what you mean is to have

Re: [sqlalchemy] Re: Advice on cascading polymorphic inheritance

2019-08-22 Thread Javier Martínez
ou simply have the > polymorphic_on in the base-most table be the place where the discriminator > is stored, and each descendant class defines its discriminator value fully. > > > > On Thu, Aug 22, 2019, at 10:39 AM, Javier Martínez wrote: > > In deed I am tr

[sqlalchemy] Re: Advice on cascading polymorphic inheritance

2019-08-22 Thread Javier Martínez
In deed I am trying to follow this idea: https://groups.google.com/d/msg/sqlalchemy/ij10zJ4hOv8/5YQDDkwJ2wUJ On Thursday, August 22, 2019 at 3:28:34 PM UTC+2, Javier Martínez wrote: > > Hi everyone, > > here again to look for some advice and wise suggestions. > > I am facing

[sqlalchemy] Advice on cascading polymorphic inheritance

2019-08-22 Thread Javier Martínez
Hi everyone, here again to look for some advice and wise suggestions. I am facing a situation that I thought I have already covered, but during the testing phase (with real data) was not the case. So I have the relationship between entities that you can see in the diagram below. I have

Re: [sqlalchemy] inheritance hierarchy not updating second level hierarchy

2019-06-13 Thread Javier Martínez
:) ) if the bug is helping to improve SQLalchemy (great project). Best On Wednesday, June 12, 2019 at 6:30:30 PM UTC+2, Mike Bayer wrote: > > > > On Wed, Jun 12, 2019, at 10:10 AM, Javier Martínez wrote: > > Hi everyone, > I am searching but I find no solution for my issue

[sqlalchemy] inheritance hierarchy not updating second level hierarchy

2019-06-12 Thread Javier Martínez
Hi everyone, I am searching but I find no solution for my issue that is why I decided to ask here. Thanks in advance for your attention. The issue is related to the update of a second level hierarchy object Id. I am creating a hierarchy, following the recommendations in the tutorials but I