MongoDB property manager#

Note

This is not production code.

Module description#

Implements a property manager based on MongoDB.

Usage: add this lines to wsgidav.conf:

from wsgidav.prop_man.mongo_property_manager import MongoPropertyManager
prop_man_opts = {}
property_manager = MongoPropertyManager(prop_man_opts)

Valid options are (sample shows defaults):

opts = {"host": "localhost",       # MongoDB server
        "port": 27017,             # MongoDB port
        "dbName": "wsgidav-props", # Name of DB to store the properties
        # This options are used with `mongod --auth`
        # The user must be created with db.addUser()
        "user": None,              # Authenticate with this user
        "pwd": None,               # ... and password
        }