As of PyMongo 2.4 MongoClient and MongoReplicaSetClient are meant to be used instead of Connection and ReplicaSetConnection. This commit changes it. There is one problem, this won't work with PyMongo versions less than 2.4...
Use MongoClient and MongoReplicaSetClient instead of Connection and R…
Thanks, I hadn't had time to review MongoClient yet.
We should update setup.py to require pymongo 2.4, and then clean out some of the support for older versions from init.py (like the switch around auto_start_request, and anything else I'm forgetting).
Hey guys, you could maybe look at this ticket on gunicorn but related to flask-pymongo benoitc/gunicorn#450
Require PyMongo2.4 get rid of some unneeded backwards compatability f…
Fix small bug, it was just me being stupid
Remove redundant tests
I've done a bit of housekeeping, so I've updated setup.py, removed some unneeded PyMongo stuff and updated the tests to reflect this. Hopefully this also solves benoitc/gunicorn#450 although this may need to be tested further.
Merge branch 'tang0th-master' (closes #17)