]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed bug that affected many classes of event, particularly
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Sep 2014 19:24:40 +0000 (15:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Sep 2014 19:24:40 +0000 (15:24 -0400)
commit9ae4db27b993fbd4666907cd11c2de3a41aee02f
treef31b5e80f0c17ec53cbf755e6e56e57721f153d6
parentf82f6d55dc05daf2ba0881ded98f5715b70ae3e3
- Fixed bug that affected many classes of event, particularly
ORM events but also engine events, where the usual logic of
"de duplicating" a redundant call to :func:`.event.listen`
with the same arguments would fail, for those events where the
listener function is wrapped.  An assertion would be hit within
registry.py.  This assertion has now been integrated into the
deduplication check, with the added bonus of a simpler means
of checking deduplication across the board.
fixes #3199
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/event/attr.py
lib/sqlalchemy/event/registry.py
test/base/test_events.py