summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/dynamic.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-09-05 17:25:32 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-09-05 17:25:32 +0000
commit9717c7170917856e07331796d8439d30ac93006e (patch)
tree8e4da9bec57d973a3ba00496e807272acae5ba37 /lib/sqlalchemy/orm/dynamic.py
parent43a927f6e03e1c87c4ea9f1ffe6dce6d794ccdda (diff)
downloadsqlalchemy-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.py2
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()