This PR puts (almost) everything that's specific to MongoDB/MongoEngine in flask_common.mongo.* submodules.
This is first and foremost a better structure, but it'll also make it easier to understand a) what needs to change when we move to upstream MongoEngine, b) where to put anything else that's mongo-specific (I may soon add some code in here if it won't make it to upstream MongoEngine).
Probably best to review the commits separately. You may also want to check out this branch and check the code structure in your editor.
This PR puts (almost) everything that's specific to MongoDB/MongoEngine in
flask_common.mongo.*
submodules.This is first and foremost a better structure, but it'll also make it easier to understand a) what needs to change when we move to upstream MongoEngine, b) where to put anything else that's mongo-specific (I may soon add some code in here if it won't make it to upstream MongoEngine).
Probably best to review the commits separately. You may also want to check out this branch and check the code structure in your editor.