peterbe/socorro — pull request #2 by twobraids (2012-03-20 20:27:42+00:00)
Title: experiment in quit callback and decoupling transactions from postgres

this is only an experiment to get feedback. Yeah, I should have decoupled these two issues, but I didn't.

take a look at the changes to how I use the transaction class in your PostgresCrashStorage class. Rather than the transaction instantiating its own database connection context, the connection context is instantiated separately. I like this prefer this decoupling because it gives the designer more freedom in placing the database connections into any namespace rather than forcing it to be within the transaction namespace.

take a look around and let's discuss it.