[sqlalchemy] combining column_property and TypeDecorator

2015-11-10 Thread Uri Okrent
Seems like a simple thing to do but I can't seem to find an example. Say I have a simple column_property like the example in the docs: fullname = column_property(firstname + " " + lastname) and I want to perform additional (trivial in this example) processing on the result at the orm level

Re: [sqlalchemy] combining column_property and TypeDecorator

2015-11-10 Thread Michael Bayer
Sent from my iPhone > On Nov 10, 2015, at 5:46 PM, Uri Okrent wrote: > > Seems like a simple thing to do but I can't seem to find an example. Say I > have a simple column_property like the example in the docs: > > fullname = column_property(firstname + " " + lastname) >

Re: [sqlalchemy] combining column_property and TypeDecorator

2015-11-10 Thread Michael Bayer
Look into the type_coerce() function for that. > On Nov 10, 2015, at 5:46 PM, Uri Okrent wrote: > > Seems like a simple thing to do but I can't seem to find an example. Say I > have a simple column_property like the example in the docs: > > fullname =