diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-07-18 16:43:02 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-07-18 16:43:02 -0400 |
commit | 9c0de7fcf7fc56701af446742fe876335aef15b1 (patch) | |
tree | 5fb52bc62b39c9ac9c9f87285443d02d6d39678a /lib/sqlalchemy/orm/attributes.py | |
parent | dff7c2ad2c913ed0ec5979ff9470dd5dd5813483 (diff) | |
download | sqlalchemy-9c0de7fcf7fc56701af446742fe876335aef15b1.tar.gz |
- with InstanceState more public, underscore all its methods
that change object state as these aren't intended for public
use.
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 9a1c60aa7..d335d8996 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -557,7 +557,7 @@ class AttributeImpl(object): """set an attribute value on the given instance and 'commit' it.""" dict_[self.key] = value - state.commit(dict_, [self.key]) + state._commit(dict_, [self.key]) return value class ScalarAttributeImpl(AttributeImpl): @@ -934,7 +934,7 @@ class CollectionAttributeImpl(AttributeImpl): state.dict[self.key] = user_data - state.commit(dict_, [self.key]) + state._commit(dict_, [self.key]) if self.key in state._pending_mutations: # pending items exist. issue a modified event, |