pastedeploy help methods for repoze.what.
Project description
repoze.what.plugins.config – repoze.what with pasterconfig
Installing repoze.what.plugins.config
You can install repoze.what.plugins.config using git:
git clone git://github.com/jdinuncio/repoze.what.plugins.config.git cd repoze.what.plugins.config python setup.py install
Using repoze.what.plugins.config
repoze.what.plugins.config offers a config entry point for pastedeploy to instantiate a repoze.who+repoze.what middleware. You can use it as a filter in the paster INI file:
[filter:what] use = egg:repoze.what.plugins.config#config config_file = %(here)s/what.ini who_config_file = %(here)s/who.ini
The what.ini file has the same format of a who INI file, with the following additions:
You can define what plugins.
There is a special section what with group_adapters and permission_adapters entries.
You can combine who.ini and what.ini in one file. If you decide to do this, remember that a repoze.what modprovider will be implicitly added to your repoze.who configuration.
Example of use
Here is a valid what.ini config file:
[plugin:basicauth] use = repoze.who.plugins.basicauth:make_plugin realm = 'zbfg' [plugin:htpasswd] use = repoze.who.plugins.htpasswd:make_plugin check_fn = repoze.who.plugins.htpasswd:plain_check filename = %(here)s/passwd [plugin:ini_group] use = repoze.what.plugins.ini:INIGroupAdapter filename = group.ini [plugin:ini_permission] use = repoze.what.plugins.ini:INIPermissionsAdapter filename = permissions.ini [general] request_classifier = repoze.who.classifiers:default_request_classifier challenge_decider = repoze.who.classifiers:default_challenge_decider remote_user_key = REMOTE_USER [identifiers] plugins = basicauth [authenticators] plugins = htpasswd [challengers] plugins = basicauth [what] group_adapters = ini_group permission_adapters = ini_permission
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for repoze.what.plugins.config-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ac064c627cd68d9087b9ae85924149402a3a3d961c078c173c40f1b6b97eff0 |
|
MD5 | 20c378e21255bc40dcba089d94bfb694 |
|
BLAKE2b-256 | 050ebe5dcec246171707d7eea95546fe16e143136ee7adaf4acf353294c6e361 |
Hashes for repoze.what.plugins.config-0.2-py2.5.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce6ba7334bafba68d6b413728be93d150df0fad8ce0df44294d93163a623fb62 |
|
MD5 | 3f4476365676b5a0f99d3196b36bc1bd |
|
BLAKE2b-256 | 1d61ada41172d79c8be7a4e947ed95b89aaefbb3e45a604b6a2b98d0a7885b57 |