MongoEngine/extras-mongoengine — pull request #10 by diegows (2013-09-17 18:27:17+00:00)
Title: New class to implement "switcheable" documents in MongoEngine.

context manager are a little complex is you want to switch DBs globally. I need a global switch for my app and I implemented this that it's been working the last months. Could be useful for somebody else.

Feedback is welcome.