Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Sep 29, 2013

Conversation

zzzeek
Copy link
Contributor

@zzzeek zzzeek commented Sep 29, 2013

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.

  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
Copy link
Contributor

lrowe commented Sep 29, 2013

Thanks!

@lrowe lrowe closed this Sep 29, 2013
@lrowe lrowe reopened this Sep 29, 2013
lrowe added a commit that referenced this pull request Sep 29, 2013
add new register() function to establish zope listener via SQLAlchemy events
@lrowe lrowe merged commit e65bdfc into zopefoundation:master Sep 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants