summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/attributes.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-04-19 19:33:51 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-04-19 19:33:51 +0000
commitd1fa8fe3272de79f120d9cf5e9e4a7f69bbcf343 (patch)
tree5435b5d9036f115c99ee86520c0ee554ada1adcd /lib/sqlalchemy/attributes.py
parent33f87bd0f5440028c4b1c5658dc9117ffc354b81 (diff)
downloadsqlalchemy-d1fa8fe3272de79f120d9cf5e9e4a7f69bbcf343.tar.gz
fixed up expunge() and the continuing circular refs in attributes, added a unit test for the whole thing
Diffstat (limited to 'lib/sqlalchemy/attributes.py')
-rw-r--r--lib/sqlalchemy/attributes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/attributes.py b/lib/sqlalchemy/attributes.py
index e399e7ed0..98884df44 100644
--- a/lib/sqlalchemy/attributes.py
+++ b/lib/sqlalchemy/attributes.py
@@ -78,10 +78,10 @@ class ManagedAttribute(object):
which occurs through the SmartProperty property object ultimately calls upon
ManagedAttribute objects associated with the instance via this dictionary."""
def __init__(self, obj, key):
- #self.__obj = weakref.ref(obj)
- self.obj = obj
+ self.__obj = weakref.ref(obj)
+ #self.obj = obj
self.key = key
- #obj = property(lambda s:s.__obj())
+ obj = property(lambda s:s.__obj())
def history(self, **kwargs):
return self
def plain_init(self, *args, **kwargs):