Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

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.addons.mongo_property_manager import MongoPropertyManager
prop_man_opts = {}
propsmanager = 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
        }