]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- create a new system where we can decorate an event method
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Jul 2013 17:39:56 +0000 (13:39 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Jul 2013 17:39:56 +0000 (13:39 -0400)
commit02a81707dc8b7c4d69551cad195fb16ca6955df1
treefeda05ad7e0ce7bef057b9ee9d55d3273d8d008a
parentdb68ecff12f790fd129f03b8676b317fa17e5f28
- create a new system where we can decorate an event method
with @_legacy_signature, will inspect incoming listener functions
to see if they match an older signature, will wrap into a newer sig
- add an event listen argument named=True, will send all args as
kw args so that event listeners can be written with **kw, any combination
of names
- add a doc system to events that writes out the various calling styles
for a given event, produces deprecation messages automatically.
a little concerned that it's a bit verbose but will look at it up
on RTD for awhile to get a feel.
- change the calling signature for bulk update/delete events - we have
the BulkUD object right there, and there's at least six or seven things
people might want to see, so just send the whole BulkUD in
[ticket:2775]
12 files changed:
doc/build/core/event.rst
doc/build/static/docs.css
lib/sqlalchemy/event.py
lib/sqlalchemy/events.py
lib/sqlalchemy/orm/events.py
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/util/__init__.py
lib/sqlalchemy/util/compat.py
lib/sqlalchemy/util/deprecations.py
lib/sqlalchemy/util/langhelpers.py
test/base/test_events.py
test/orm/test_events.py