zopefoundation / zope.sqlalchemy

Integration of SQLAlchemy with transaction management
Other
32 stars 34 forks source link

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

Closed zzzeek closed 11 years ago

zzzeek commented 11 years ago

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.

lrowe commented 11 years ago

Thanks!