Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install repoze.what.plugins.config

How to install repoze.what.plugins.config

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install repoze.what.plugins.config
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.1 Available View build log
Windows (64-bit)
0.2.1 Available View build log
Mac OS X (10.5+)
0.2.1 Available View build log
Linux (32-bit)
0.2.1 Available View build log
Linux (64-bit)
0.2.1 Available View build log
 
Author
License
BSD-derived (see http://www.repoze.org/LICENSE.txt
Dependencies
Depended by
Imports
Lastest release
version 0.2.1 on Jan 5th, 2011

repoze.what.plugins.config -- repoze.what with pasterconfig

System Message: ERROR/3 (<string>, line 4)

Content block expected for the "topic" directive; none found.

.. topic:: Overview

repoze.what.plugins.config allows you to configure repoze.who and repoze.what using pastedeploy. repoze.who and repoze.what are WSGI middleware frameworks for authentication and authorization, respectively. paster and pastedeploy allows you to configure your WSGI application via INI files.

Installing repoze.what.plugins.config

You can install repoze.what.plugins.config using git:

System Message: WARNING/2 (<string>, line 18)

Literal block expected; none found.

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]

System Message: ERROR/3 (<string>, line 31)

Inconsistent literal block quoting.

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

System Message: WARNING/2 (<string>, line 40)

Bullet list ends without a blank line; unexpected unindent.

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]

System Message: ERROR/3 (<string>, line 52)

Inconsistent literal block quoting.

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

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.