diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-11 00:36:32 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-11 00:36:32 +0000 |
commit | 7d91bebccc0f3a7f68a17692b41a265126316e17 (patch) | |
tree | b8e20d2509ce2d7c4db73bf0f63ce1b20eb115b6 /lib/sqlalchemy/ext/activemapper.py | |
parent | f1b164df9ff1399c8c39c39d5053d3c9c1e48ba7 (diff) | |
download | sqlalchemy-7d91bebccc0f3a7f68a17692b41a265126316e17.tar.gz |
sqlite detects version and disables CAST if version < 3.2.3
fixes to unittests, mapper extension to work better with setting/unsetting extensions
objectstore objects get 'session' attribute
Diffstat (limited to 'lib/sqlalchemy/ext/activemapper.py')
-rw-r--r-- | lib/sqlalchemy/ext/activemapper.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/ext/activemapper.py b/lib/sqlalchemy/ext/activemapper.py index d21332e3a..957496e8e 100644 --- a/lib/sqlalchemy/ext/activemapper.py +++ b/lib/sqlalchemy/ext/activemapper.py @@ -25,6 +25,7 @@ except AttributeError: self.context = SessionContext(*args, **kwargs) def __getattr__(self, name): return getattr(self.context.current, name) + session = property(lambda s:s.context.current) objectstore = Objectstore(create_session) |