Sent from my iPhone

> On Nov 10, 2015, at 5:46 PM, Uri Okrent <uokr...@gmail.com> 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 perform additional (trivial in this example) processing on the 
> result at the orm level like for instance:
> class FullNameWithTitle(TypeDecorator):
>     impl = Text
> 
>     def process_result_value(self, value, dialect):
>         return "Mr. " + value
> 
> 
> Is there a simple way to specify the FullNameWithTitle type for the fullname 
> column_property?
> 
> Thanks
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to