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
|
Implements a property manager based on MongoDB. |
Functions
|
Decode a string that was encoded by encode_mongo_key(). |
Return an encoded version of s that may be used as MongoDB key. |
Other Members
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
Built-in immutable sequence. |