summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-12-20 10:51:24 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-12-20 10:51:24 -0500
commit09534eaf9aa9f86f0f75d440e70ec199de69943c (patch)
treee33f0b202dd3358d944f45786bece9d6ac9f82fe /lib/sqlalchemy
parent7590755fd1377ab5264f63dd38c8212bf612435e (diff)
downloadsqlalchemy-09534eaf9aa9f86f0f75d440e70ec199de69943c.tar.gz
- merge versioning example fix from 0.6
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/attributes.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py
index 0457efc1f..667e69190 100644
--- a/lib/sqlalchemy/orm/attributes.py
+++ b/lib/sqlalchemy/orm/attributes.py
@@ -269,6 +269,16 @@ class AttributeImpl(object):
self.expire_missing = expire_missing
+ def _get_active_history(self):
+ """Backwards compat for impl.active_history"""
+
+ return self.dispatch.active_history
+
+ def _set_active_history(self, value):
+ self.dispatch.active_history = value
+
+ active_history = property(_get_active_history, _set_active_history)
+
def hasparent(self, state, optimistic=False):
"""Return the boolean value of a `hasparent` flag attached to