Is there a way to access the changed attributes of an ORM object ?
Everything I've dug up refers to the dirty objects in a session, not the
attributes of an object.
( I'm trying to automate some revision logging /auditing of sqlalchemy
objects )
--
You received this message because you
http://docs.sqlalchemy.org/en/rel_0_8/orm/internals.html#sqlalchemy.orm.state.AttributeState
On Aug 12, 2013, at 12:48 PM, Jonathan Vanasco jvana...@gmail.com wrote:
Is there a way to access the changed attributes of an ORM object ?
Everything I've dug up refers to the dirty objects in a
there's a typo in the docs:
bad:
attr_state = insp.attr.some_attribute
works:
attr_state = insp.attrs.some_attribute
--
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
Thanks, Mike!
That let me slap together a quick mixin class to store versioned data (of
specific columns) in PostgreSQL -
class RevisionObject(object):
revision_columns = None
revision_id = sa.Column(sa.Integer, nullable=False, default=0 )
revision_history = sa.Column(