diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-11-18 18:19:52 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-11-18 18:19:52 +0000 |
commit | ea627ebe5c8c34ffc4ab5efd04a4855c9419e9c6 (patch) | |
tree | 088dba60ebe3c3ab6b9ef34e0ea9d8f7ec1e6a69 /lib/sqlalchemy/engine/base.py | |
parent | 08a434881faa14eab8f17274b97af042903eaba9 (diff) | |
download | sqlalchemy-ea627ebe5c8c34ffc4ab5efd04a4855c9419e9c6.tar.gz |
Migrated Connection.properties to Connection.info ('info' is the new standard name for user-writable property collections that came out of [ticket:573]). 'properties' is now an alias, will be removed in 0.5.
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index c3f99bb24..6af0ce0d3 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -557,8 +557,13 @@ class Connection(Connectable): dialect = property(lambda s:s.engine.dialect, doc="Dialect used by this Connection.") connection = property(_get_connection, doc="The underlying DB-API connection managed by this Connection.") should_close_with_result = property(lambda s:s.__close_with_result, doc="Indicates if this Connection should be closed when a corresponding ResultProxy is closed; this is essentially an auto-release mode.") - properties = property(lambda s: s._get_connection().properties, - doc="A collection of per-DB-API connection instance properties.") + + info = property(lambda s: s._get_connection().info, + doc=("A collection of per-DB-API connection instance " + "properties.")) + properties = property(lambda s: s._get_connection().info, + doc=("An alias for the .info collection, will be " + "removed in 0.5.")) def connect(self): """Returns self. |