Re: [sqlalchemy] [Q] How to fix a circular dependency error?

2014-05-28 Thread Ladislav Lenart
On 27.5.2014 22:09, Michael Bayer wrote: some improvement was made to this formatting in 0.8 or so, though even now it's not very easy to read directly. Typically I try to look at the classes and relationships being mentioned in the error and then inspect the mappings. In this case it

Re: [sqlalchemy] [Q] How to fix a circular dependency error?

2014-05-28 Thread Michael Bayer
On May 28, 2014, at 6:42 AM, Ladislav Lenart lenart...@volny.cz wrote: On 27.5.2014 22:09, Michael Bayer wrote: some improvement was made to this formatting in 0.8 or so, though even now it's not very easy to read directly. Typically I try to look at the classes and relationships being

[sqlalchemy] [Q] How to fix a circular dependency error?

2014-05-27 Thread Ladislav Lenart
Hello. A specific DML request crashed with a CircularDependencyError on our test env. I know that I should set post_update=True to the problematic relationship. The thing is I do not see the cycle and the error description is quite big. Could you please provide some guidance as to how to find the

Re: [sqlalchemy] [Q] How to fix a circular dependency error?

2014-05-27 Thread Michael Bayer
some improvement was made to this formatting in 0.8 or so, though even now it's not very easy to read directly. Typically I try to look at the classes and relationships being mentioned in the error and then inspect the mappings. In this case it appears like the cycle is just on the Partner