Re: [sqlalchemy] Re: unable to understand this error

2010-02-17 Thread anusha kadambala
hi werner, Thanks for the help.It is working fine now. On Tue, Feb 16, 2010 at 9:11 PM, werner wbru...@free.fr wrote: On 16/02/2010 15:48, Krishnakant Mane wrote: On Tuesday 16 February 2010 07:01 PM, avdd wrote: Now the specific problem you see is that the ORM uses the declared

[sqlalchemy] Re: unable to understand this error

2010-02-16 Thread avdd
Hi anusha, The error is unrelated to your Login query because sqlalchemy compiles the mappers as late as possible. It might help if you put somewhere in your application code, after you have imported all your entities, the lines: from sqlalchemy import orm orm.compile_mappers() to catch

Re: [sqlalchemy] Re: unable to understand this error

2010-02-16 Thread anusha kadambala
hi avdd, On Tue, Feb 16, 2010 at 7:01 PM, avdd adr...@gmail.com wrote: Hi anusha, The error is unrelated to your Login query because sqlalchemy compiles the mappers as late as possible. It might help if you put somewhere in your application code, after you have imported all your entities,

Re: [sqlalchemy] Re: unable to understand this error

2010-02-16 Thread Krishnakant Mane
On Tuesday 16 February 2010 07:01 PM, avdd wrote: Now the specific problem you see is that the ORM uses the declared ForeignKeys to determine how to join tables for a relation, but on your Detail table you have two foreign keys back to account and the ORM doesn't know which one to use.

Re: [sqlalchemy] Re: unable to understand this error

2010-02-16 Thread werner
On 16/02/2010 15:48, Krishnakant Mane wrote: On Tuesday 16 February 2010 07:01 PM, avdd wrote: Now the specific problem you see is that the ORM uses the declared ForeignKeys to determine how to join tables for a relation, but on your Detail table you have two foreign keys back to account and