[sqlalchemy] Re: Relationship (Foreign key) inside composite column

2011-01-12 Thread Arturo Sevilla
On Jan 10, 12:44 pm, Michael Bayer mike...@zzzcomputing.com wrote: On Jan 10, 2011, at 2:21 PM, Arturo Sevilla wrote: Hello, Thanks again for the quick reply! I tried to isolate all the mapper columns to try to make it less confusing, now I know that was not a good idea.

Re: [sqlalchemy] Re: Relationship (Foreign key) inside composite column

2011-01-12 Thread Michael Bayer
On Jan 12, 2011, at 10:09 PM, Arturo Sevilla wrote: What I finally did is kind of black magic (not very proud of it) though it works for what I needed. Is kind of expanding the idea of the read-only property but making it writable by injecting what I called an updator which basically

[sqlalchemy] Re: Relationship (Foreign key) inside composite column

2011-01-10 Thread Arturo Sevilla
Hello, Thanks again for the quick reply! I tried to isolate all the mapper columns to try to make it less confusing, now I know that was not a good idea. orm.mapper(User, user, properties={ 'id': user.c.ID, '_first_name': user.c.FirstName, '_middle_name':

Re: [sqlalchemy] Re: Relationship (Foreign key) inside composite column

2011-01-10 Thread Michael Bayer
On Jan 10, 2011, at 2:21 PM, Arturo Sevilla wrote: Hello, Thanks again for the quick reply! I tried to isolate all the mapper columns to try to make it less confusing, now I know that was not a good idea. orm.mapper(User, user, properties={ 'id': user.c.ID,