Use MongoClient and MongoReplicaSetClient #17

wants to merge 4 commits into


None yet

3 participants

wsddn commented Dec 5, 2012

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...

dcrosta commented Dec 6, 2012

Thanks, I hadn't had time to review MongoClient yet.

We should update to require pymongo 2.4, and then clean out some of the support for older versions from (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

wsddn commented Dec 14, 2012

I've done a bit of housekeeping, so I've updated, 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.

@dcrosta dcrosta closed this in 632ff02 Dec 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment