mozilla/socorro — pull request #884 by AdrianGaudebert (2012-10-16 16:40:12+00:00)
Title: Fixes bug 778744 - Cleaned up middleware and its unit tests.

This does a bunch of things:
* move all PostgreSQL querying to one robust function in ``base.py``
* improve error handling in postgres services
* fix some styling and PEP8 issues
* make integration tests a bit more consistent (no more output, real integration tests)

This change should be totally transparent to our users and functional tests.