add new register() function to establish zope listener via SQLAlchemy events #4

merged 1 commit into from Sep 29, 2013

2 participants


this pullreq makes available a register() function which connects a ZopeTransactionExtension instance to a target Session class, factory or instance via direct use of the SQLAlchemy event API available as of SQLAlchemy 0.7. While SQLAlchemy's SessionExtension is remaining indefinitely, this calling style is the more up-to-date style and also allows for more flexibility as far as the event target, including ad-hoc registration (and de-registration in 0.9) of specific events.

@zzzeek zzzeek * Add a new function zope.sqlalchemy.register(), which replaces the
  direct use of ZopeTransactionExtension to make use
  of the newer SQLAlchemy event system to establish instrumentation on
  the given Session instance/class/factory.   Requires at least
  SQLAlchemy 0.7.


@lrowe lrowe closed this Sep 29, 2013
@lrowe lrowe reopened this Sep 29, 2013
@lrowe lrowe merged commit e65bdfc into zopefoundation:master Sep 29, 2013

1 check passed

Details default The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment