]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- add instrumentation events
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 2 Oct 2010 17:31:07 +0000 (13:31 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 2 Oct 2010 17:31:07 +0000 (13:31 -0400)
commitd46985d699e6ebffe45c94d91cfa842271e06bb0
treeb04fbb7dcc96afc2c0c3973e77e53ef2cbcc7643
parent25c08f6def19e1034a887e972ad286ef122473d0
- add instrumentation events
- simplify listen_for_events example with new system
- add "propagate", "retval", "raw" flags to attribute events.  this solves the "return value"
issue as well as the "subclass" issue.
- begin thinking about event removal.   Each listen() method will have a corresponding remove().
Custom listen() methods will have to package all the info onto the event function that is needed
to remove its state.
examples/custom_attributes/listen_for_events.py
lib/sqlalchemy/event.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/deprecated_interfaces.py
lib/sqlalchemy/orm/events.py
lib/sqlalchemy/orm/instrumentation.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/orm/state.py
lib/sqlalchemy/orm/util.py
test/orm/test_instrumentation.py