[sqlalchemy] Get value from field class and instance

2011-09-06 Thread Mark Erbaugh
Let's say there is a mapped (declaratively, but that shouldn't matter) class, Data, that has fields Data.value1, ... Data.value10. There is also an instance of this class, data that is populated from the data table. Obviously, you can get the values using data.value1, ... But is there a

Re: [sqlalchemy] Get value from field class and instance

2011-09-06 Thread Michael Bayer
On Sep 6, 2011, at 2:38 PM, Mark Erbaugh wrote: Let's say there is a mapped (declaratively, but that shouldn't matter) class, Data, that has fields Data.value1, ... Data.value10. There is also an instance of this class, data that is populated from the data table. Obviously, you can

Re: [sqlalchemy] Get value from field class and instance

2011-09-06 Thread Mark Erbaugh
On Sep 6, 2011, at 2:48 PM, Michael Bayer wrote: On Sep 6, 2011, at 2:38 PM, Mark Erbaugh wrote: Let's say there is a mapped (declaratively, but that shouldn't matter) class, Data, that has fields Data.value1, ... Data.value10. There is also an instance of this class, data that is