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 = column_property(firstname + " " + lastnam

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) > > > and I want to

[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 li

[sqlalchemy] sqlalchemy.exc.compileError: Unconsumed column Name

2015-11-10 Thread Mrudula Chougule
Please find below is my function details: Function name: *create_configuration_table* def create_configuration_table(mdata=None, insert=True): # optional parameter mdata and insert are unique for usage of this function # inside data_session.py, look there for details **md = None if mdata: m