[sqlalchemy] Re: Info needed regarding the use of cascade

2008-11-20 Thread --- [EMAIL PROTECTED] ---
I got you now Thank you Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL

[sqlalchemy] Re: Info needed regarding the use of cascade

2008-11-18 Thread --- [EMAIL PROTECTED] ---
Thank you Michael , you only need a single relation() + backref(), books-stock. did you mean like this ? class Stock(declarative_base): __tablename__ = 'tbl_stock' pass class Book(declarative_base): __tablename__ = 'tbl_books'

[sqlalchemy] Re: Info needed regarding the use of cascade

2008-11-18 Thread King Simon-NFHD78
-Original Message- From: sqlalchemy@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ---[EMAIL PROTECTED]@il06exr02.mot.com Sent: 18 November 2008 10:04 To: sqlalchemy Subject: [sqlalchemy] Re: Info needed regarding the use of cascade Thank you Michael , you

[sqlalchemy] Re: Info needed regarding the use of cascade

2008-11-15 Thread Michael Bayer
On Nov 15, 2008, at 6:03 AM, --- [EMAIL PROTECTED] --- wrote: i have tried giving cascade = 'a'',delete-orphan' but errors comes you should use delete-orphan for that functionality. If there are error messages, feel free to ask what they mean. Also you have redundant relations set up,