Ńň
Ń˙ŤIc @ s d Z d d k Z d d k l Z d d k l Z d d k l Z l Z d d k l
Z
l Z d d g Z d e
f d YZ d d d
Z d S( s^
Utilities to setup authorization by configuring repoze.who's middleware to
use repoze.what.
i˙˙˙˙N( t
implements( t make_middleware( t default_challenge_decidert default_request_classifier( t IAuthenticatort IMetadataProvidert AuthorizationMetadatat
setup_authc B s9 e Z d Z e e d d d Z d Z d Z RS( s
repoze.who metadata provider to load groups and permissions data for
the current user.
There's no need to include this class in the end-user documentation,
as there's no reason why they may ever need it... It's only by
:func:`setup_auth`.
c C s | | _ | | _ d S( sÂ
Fetch the groups and permissions of the authenticated user.
:param group_adapters: Set of adapters that retrieve the known groups
of the application, each identified by a keyword.
:type group_adapters: dict
:param permission_adapters: Set of adapters that retrieve the
permissions for the groups, each identified by a keyword.
:type permission_adapters: dict
N( t group_adapterst permission_adapters( t selfR R ( ( s: /usr/lib/python2.6/site-packages/repoze/what/middleware.pyt __init__0 s c C sÍ t } t } | i d j o | i } | d | d