diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-09-05 17:25:32 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-09-05 17:25:32 +0000 |
commit | 9717c7170917856e07331796d8439d30ac93006e (patch) | |
tree | 8e4da9bec57d973a3ba00496e807272acae5ba37 /lib/sqlalchemy/orm/dynamic.py | |
parent | 43a927f6e03e1c87c4ea9f1ffe6dce6d794ccdda (diff) | |
download | sqlalchemy-9717c7170917856e07331796d8439d30ac93006e.tar.gz |
merged current entity_management brach r3457-r3462. cleans up
'_state' mamangement in attributes, moves __init__() instrumntation into attributes.py,
and reduces method call overhead by removing '_state' property.
future enhancements may include _state maintaining a weakref to the instance and a
strong ref to its __dict__ so that garbage-collected instances can get added to 'dirty',
when weak-referenced identity map is used.
Diffstat (limited to 'lib/sqlalchemy/orm/dynamic.py')
-rw-r--r-- | lib/sqlalchemy/orm/dynamic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/dynamic.py b/lib/sqlalchemy/orm/dynamic.py index 1d4b5f6c9..aa5105150 100644 --- a/lib/sqlalchemy/orm/dynamic.py +++ b/lib/sqlalchemy/orm/dynamic.py @@ -34,7 +34,7 @@ class DynamicCollectionAttribute(attributes.InstrumentedAttribute): old_collection = self.get(obj).assign(value) # TODO: emit events ??? - state['modified'] = True + state.modified = True def delete(self, *args, **kwargs): raise NotImplementedError() |