[sqlalchemy] Re: Assigning to a deferred column

2010-11-20 Thread Eoghan Murray
On Nov 19, 8:14 pm, Michael Bayer wrote: > The ORM uses attribute set events to flag changes.    It then uses the > "previous" value, if present, to determine if a change has taken place at > flush time, and if so issues an UPDATE.   If "previous" is not present, in > most cases we don't need t

Re: [sqlalchemy] Re: Assigning to a deferred column

2010-11-19 Thread Michael Bayer
On Nov 19, 2010, at 1:41 PM, Eoghan Murray wrote: > I guess I can't disable the mutability flag? not if you're changing the value "inline". If you assign a new value, then you don't need "mutability". > > From reading up on mutability: > http://www.sqlalchemy.org/docs/core/types.html#sqlalc

[sqlalchemy] Re: Assigning to a deferred column

2010-11-19 Thread Eoghan Murray
Thanks for the reply, yes it is a mutable type: import jsonpickle class JsonType(types.MutableType, types.TypeDecorator): impl = types.Unicode def process_bind_param(self, value, engine): return unicode(jsonpickle.encode(value)) def process_result_val