Ñò
+°Ic @ s- d Z d d k l Z d d k Td „ Z d S( sÎ
Utilities to restrict access based on predicates.
.. deprecated:: 1.0.4
This module won't be available in :mod:`repoze.what` v2. See
:meth:`repoze.what.predicates.Predicate.check_authorization`.
iÿÿÿÿ( t warn( t *c C s; d } t | t d d ƒ| d j o | i | ƒ n d S( sð
Verify if the current user really can access the requested source.
:param predicate: The predicate to be evaluated.
:param environ: The WSGI environment.
:raise NotAuthorizedError: If it the predicate is not met.
.. deprecated:: 1.0.4
Use :meth:`repoze.what.predicates.Predicate.check_authorization`
instead.
.. versionchanged:: 1.0.4
:class:`repoze.what.predicates.PredicateError` used to be the exception
raised.
s… repoze.what.authorize is deprecated for forward compatibility with repoze.what v2; use Predicate.check_authorization(environ) insteadt
stackleveli N( R t DeprecationWarningt Nonet check_authorization( t predicatet environt msg( ( s9 /usr/lib/python2.6/site-packages/repoze/what/authorize.pyR s
N( t __doc__t warningsR t repoze.what.predicatesR ( ( ( s9 /usr/lib/python2.6/site-packages/repoze/what/authorize.pyt