Re: [sqlalchemy] Custom Type - two classes (object + TypeDecorator) or one (TypeDecorator)?

2015-03-31 Thread Jeffrey McLarty
Thank you so much! Man my wheels were spinning! Your answer, plus the section of the docs on Mutability Tracking, made all the lights go on! I needed both. The Custom Type section does have a note on mutability, but it's kind of hidden under the last of 3 recipes, the Marshal JSON strings.

Re: [sqlalchemy] Custom Type - two classes (object + TypeDecorator) or one (TypeDecorator)?

2015-03-31 Thread Michael Bayer
Jeffrey McLarty jeffrey.mcla...@gmail.com wrote: Hello, First - amazing work on SQLAlchemy, what an amazing body of work. Second, my question. I'm attempting to convert a pure-python object, into a custom type for column definition. My question is, do I need to keep my original

[sqlalchemy] Custom Type - two classes (object + TypeDecorator) or one (TypeDecorator)?

2015-03-30 Thread Jeffrey McLarty
Hello, First - amazing work on SQLAlchemy, what an amazing body of work. Second, my question. I'm attempting to convert a pure-python object, into a custom type for column definition. My question is, do I need to keep my original MyObj(object) and use it inside the