Module Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Return NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str TryExcept body Return SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad Str decorator_list
N/A N/A _state_strings N/A dict allow True deny False grant True reject False parse_state N/A N/A state N/A N/A N/A Convert a bool, or string, into a bool.

    The string pairs we respond to (case insensitively) are:
    
    - ALLOW & DENY
    - GRANT & REJECT

    :returns bool: ``True`` or ``False``.
    :raises ValueError: when not a ``bool`` or one of the above strings.

    E.g.::

        >>> parse_state('Allow')
        True

     N/A N/A isinstance state bool N/A N/A state N/A N/A N/A isinstance state basestring N/A N/A N/A TypeError ACL state must be bool or string N/A N/A N/A N/A _state_strings N/A N/A N/A state lower N/A N/A N/A KeyError N/A N/A N/A ValueError unknown ACL state string N/A