Ñò
VŒ¾Ic @ s` d Z d d k l Z d d k l Z d d d d g Z d „ Z d „ Z d
„ Z d „ Z d S(
sT
Miscellaneous utilities for :mod:`repoze.what` when used in a Pylons
application.
iÿÿÿÿ( t request( t Predicatet is_mett not_mett booleanize_predicatest debooleanize_predicatesc C s | i t i ƒ S( s
Evaluate the :mod:`repoze.what` ``predicate`` checker and return ``True``
if it's met.
:param predicate: The :mod:`repoze.what` predicate checker to be evaluated.
:return: ``True`` if it's met; ``False`` otherwise.
:rtype: bool
( R R t environ( t predicate( ( sF /usr/lib/python2.6/site-packages/repoze/what/plugins/pylonshq/utils.pyR " s
c C s | i t i ƒ S( s
Evaluate the :mod:`repoze.what` ``predicate`` checker and return ``False``
if it's met.
:param predicate: The :mod:`repoze.what` predicate checker to be evaluated.
:return: ``False`` if it's met; ``True`` otherwise.
:rtype: bool
( R R R ( R ( ( sF /usr/lib/python2.6/site-packages/repoze/what/plugins/pylonshq/utils.pyR / s
c C s d „ t _ d S( sü
Make :mod:`repoze.what` predicates evaluable without passing the
``environ`` explicitly.
.. warning::
The use of this function is **strongly discouraged**. Use
:func:`is_met` or :func:`not_met` instead.
c S s | i t i ƒ S( ( R R R ( t self( ( sF /usr/lib/python2.6/site-packages/repoze/what/plugins/pylonshq/utils.pyt