wsgidav.prop_man.mongo_property_manager#

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
        }

Classes

MongoPropertyManager(options)

Implements a property manager based on MongoDB.

Functions

decode_mongo_key(key)

Decode a string that was encoded by encode_mongo_key().

encode_mongo_key(s)

Return an encoded version of s that may be used as MongoDB key.

Other Members

DOT_ESCAPE

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

HIDDEN_KEYS

Built-in immutable sequence.