diff --git a/tailbone/db.py b/tailbone/db.py index 44388e50..30f1da93 100644 --- a/tailbone/db.py +++ b/tailbone/db.py @@ -145,12 +145,6 @@ def register(session, initial_state=datamanager.STATUS_ACTIVE, event.listen(session, "before_commit", ext.before_commit) -# TODO: We can probably assume a new SA version since we use Continuum now. -if tuple(int(x) for x in sa.__version__.split('.')) >= (0, 7): - register(Session) - register(TempmonSession) - register(TrainwreckSession) -else: - Session.configure(extension=ZopeTransactionExtension()) - TempmonSession.configure(extension=ZopeTransactionExtension()) - TrainwreckSession.configure(extension=ZopeTransactionExtension()) +register(Session) +register(TempmonSession) +register(TrainwreckSession)