diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-07-25 13:08:39 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-07-25 13:08:39 -0400 |
commit | 9cbfe389f7f4b227a3319d0c28919b3df80079b0 (patch) | |
tree | f1b834af0c135ee06e30ea45921ad342ba0038da /lib/sqlalchemy/engine/base.py | |
parent | d9a6641dc8dfea02936d37d58bc446cb4fa1f1b5 (diff) | |
download | sqlalchemy-9cbfe389f7f4b227a3319d0c28919b3df80079b0.tar.gz |
- pretty much all tests passing, maybe some callcounts are off
- test suite adjusted to use engine/pool events and not listeners
- deprecation warnings
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index a5f99022f..adba6fa47 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -1573,18 +1573,19 @@ class Engine(Connectable, log.Identified): self.engine = self self.logger = log.instance_logger(self, echoflag=echo) if proxy: +# util.warn_deprecated("The 'proxy' argument to create_engine() is deprecated. Use event.listen().") interfaces.ConnectionProxy._adapt_listener(self, proxy) if execution_options: self.update_execution_options(**execution_options) class events(event.Events): @classmethod - def listen(cls, target, fn, identifier): + def listen(cls, fn, identifier, target): if issubclass(target.Connection, Connection): target.Connection = _proxy_connection_cls( Connection, target.events) - event.Events.listen(target, fn, identifier) + event.Events.listen(fn, identifier, target) def on_execute(self, conn, execute, clauseelement, *multiparams, **params): """Intercept high level execute() events.""" |