[sqlalchemy] Re: new sqlalchemy user having problems to insert...

2010-01-06 Thread seth
Yesterday I managed to get working all my 1 to 1 inserts. I was only missing the following properties on the child and parent classes: parent = Parent() child = Child() parent.child=child child.parent=parent -- You received this message because you are subscribed to the Google Groups

[sqlalchemy] Re: new sqlalchemy user having problems to insert...

2010-01-05 Thread seth
Hi Mike, Thanks for your email. You are right. And actually, I read that article two months ago and keeps coming back to me like haunting. Does not matter how many python books I have, it is just so easy to say but so hard to migrate my mind to python. Anyway, I'll keep trying. I still want to say

[sqlalchemy] Re: new sqlalchemy user having problems to insert...

2010-01-05 Thread seth
Hey, I fixed problem #1. Since I am not the first java - spring - hibernate developer migrating to the python wold, nor the last..., here goes what I learned from this: Object properties cannot be private (cannot start with _ or __ ) for SQLAlchemy to find them. I do not know the exceptions to

Re: [sqlalchemy] Re: new sqlalchemy user having problems to insert...

2010-01-05 Thread Michael Bayer
On Jan 5, 2010, at 9:57 AM, seth wrote: Hey, I fixed problem #1. Since I am not the first java - spring - hibernate developer migrating to the python wold, nor the last..., here goes what I learned from this: Object properties cannot be private (cannot start with _ or __ ) for

[sqlalchemy] Re: new sqlalchemy user having problems to insert...

2010-01-04 Thread seth
Hi Mike, Thank you very much for replying to my post. I really appreciate it. I agree that the init of the classes may have something to do with the problem. Maybe the way we are defining the attributes does not allow to SQLAlchemy table wrappers to view the attributes' values? What confuses me

[sqlalchemy] Re: new sqlalchemy user having problems to insert...

2010-01-04 Thread seth
Here goes the variables' parent class #=== # Variable quantities with units # Written by Konrad Hinsen hin...@cnrs-orleans.fr # with contributions from Greg Ward # last revision: 2007-5-25 # Revised for SIAM-PFM by Paul

Re: [sqlalchemy] Re: new sqlalchemy user having problems to insert...

2010-01-04 Thread Michael Bayer
seth wrote: Hi Mike, Thank you very much for replying to my post. I really appreciate it. I agree that the init of the classes may have something to do with the problem. Maybe the way we are defining the attributes does not allow to SQLAlchemy table wrappers to view the attributes'