[sqlalchemy] Why isn't this Json column type working?

2010-09-18 Thread Jason Baker
So I have a JSON column type that I wrote. As it turns out, it's pretty much the same as the one here[1]: from json import dumps, loads class Json(types.TypeDecorator, types.MutableType): impl=types.Text def process_bind_param(self, value, dialect): return dumps(value) def

Re: [sqlalchemy] Why isn't this Json column type working?

2010-09-18 Thread Michael Bayer
On Sep 18, 2010, at 4:39 PM, Jason Baker wrote: So I have a JSON column type that I wrote. As it turns out, it's pretty much the same as the one here[1]: from json import dumps, loads class Json(types.TypeDecorator, types.MutableType): impl=types.Text def