From ea627ebe5c8c34ffc4ab5efd04a4855c9419e9c6 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Sun, 18 Nov 2007 18:19:52 +0000 Subject: 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. --- lib/sqlalchemy/engine/base.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/engine') 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. -- cgit v1.2.1