Re: [sqlalchemy] Allow dynamic column names in CompositeProperty

2017-01-19 Thread Samer Atiani
Definitely simpler :) On Thu, Jan 19, 2017 at 16:23 mike bayer wrote: On 01/19/2017 01:53 PM, Samer Atiani wrote: > I would like to allow some of the CompositeProperty columns I'm building > to get their names dynamically, in a manner that mirrors how columns get

Re: [sqlalchemy] Allow dynamic column names in CompositeProperty

2017-01-19 Thread mike bayer
On 01/19/2017 01:53 PM, Samer Atiani wrote: I would like to allow some of the CompositeProperty columns I'm building to get their names dynamically, in a manner that mirrors how columns get their names in sqlalchemy's declarative mapper. The best way I found to implement this behavior is to do

[sqlalchemy] Allow dynamic column names in CompositeProperty

2017-01-19 Thread Samer Atiani
I would like to allow some of the CompositeProperty columns I'm building to get their names dynamically, in a manner that mirrors how columns get their names in sqlalchemy's declarative mapper. The best way I found to implement this behavior is to do the following: class