Module ImportFrom alias ImportFrom alias alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias alias Assign NameStore ListLoad Str Str Str If AttributeLoad NameLoad attr body ImportFrom alias identifier orelse ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Assign SubscriptStore Call NameLoad NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Return TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list NameLoad Call NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults vararg body Return TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad body Return Call NameLoad NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad body Return Call NameLoad NameLoad orelse If UnaryOpNot Call NameLoad NameLoad body Assign NameStore BinOpAdd Str Str Raise Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword ListLoad For TupleStore NameStore NameStore SubscriptLoad Call NameLoad NameLoad Slice body If Call IfExp AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body If BoolOpAnd Call NameLoad NameLoad CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad Str body If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Continue If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list NameLoad decorator_list Assign NameStore Call NameLoad Str TupleLoad NameLoad Dict Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad BoolOpOr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot Call NameLoad body Raise AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad Str body If CompareNotIn NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad body Expr Call NameLoad NameLoad decorator_list
N/A functools wraps inspect getmembers isfunction webob exc N/A six decorators expose util _cfg iscontroller N/A __all__ N/A unlocked secure SecureController N/A N/A six PY3 N/A compat is_bound_method ismethod N/A inspect ismethod _SecureState N/A object N/A __init__ N/A N/A self desc boolean_value N/A N/A N/A N/A self description desc N/A N/A self boolean_value boolean_value N/A __repr__ N/A N/A self N/A N/A N/A N/A <SecureState %s> N/A self description N/A __nonzero__ N/A N/A self N/A N/A N/A N/A self boolean_value N/A __bool__ N/A N/A self N/A N/A N/A N/A N/A self __nonzero__ N/A N/A N/A Any N/A _SecureState Any False N/A Protected N/A _SecureState Protected True _unlocked_method N/A N/A func N/A N/A N/A N/A N/A _cfg func N/A secured Any N/A func N/A _secure_method N/A N/A check_permissions_func N/A N/A wrap N/A N/A func N/A N/A N/A cfg N/A _cfg func N/A N/A cfg N/A secured Protected N/A N/A cfg N/A check_permissions check_permissions_func N/A func N/A N/A wrap N/A _UnlockedAttribute N/A object N/A __init__ N/A N/A self obj N/A N/A N/A N/A self obj obj N/A _lookup N/A N/A self N/A remainder N/A N/A N/A N/A self obj remainder N/A _unlocked_method N/A expose N/A _SecuredAttribute N/A object N/A __init__ N/A N/A self obj check_permissions N/A N/A N/A N/A self obj obj N/A N/A self check_permissions check_permissions N/A N/A self _parent None N/A _check_permissions N/A N/A self N/A N/A N/A N/A isinstance N/A self check_permissions N/A six string_types N/A N/A N/A N/A getattr N/A self parent N/A self check_permissions N/A N/A N/A N/A self check_permissions N/A __get_parent N/A N/A self N/A N/A N/A N/A self _parent N/A __set_parent N/A N/A self parent N/A N/A N/A N/A ismethod parent N/A N/A N/A self _parent N/A N/A six get_method_self parent N/A N/A N/A self _parent parent N/A N/A parent N/A property __get_parent __set_parent _lookup N/A N/A self N/A remainder N/A N/A N/A N/A self obj remainder N/A N/A _secure_method _check_permissions N/A expose N/A _allowed_check_permissions_types N/A N/A x N/A N/A N/A N/A N/A ismethod x N/A isfunction x N/A isinstance x N/A six string_types N/A unlocked N/A N/A func_or_obj N/A N/A N/A 
    This method unlocks method or class attribute on a SecureController.  Can
    be used to decorate or wrap an attribute
     N/A N/A N/A ismethod func_or_obj N/A isfunction func_or_obj N/A N/A N/A _unlocked_method func_or_obj N/A N/A N/A _UnlockedAttribute func_or_obj N/A secure N/A N/A func_or_obj check_permissions_for_obj N/A None N/A N/A 
    This method secures a method or class depending on invocation.

    To decorate a method use one argument:
        @secure(<check_permissions_method>)

    To secure a class, invoke with two arguments:
        secure(<obj instance>, <check_permissions_method>)
     N/A N/A _allowed_check_permissions_types func_or_obj N/A N/A N/A _secure_method func_or_obj N/A N/A N/A N/A _allowed_check_permissions_types check_permissions_for_obj N/A N/A msg N/A When securing an object, secure() requires the  second argument to be method N/A N/A TypeError msg N/A N/A _SecuredAttribute func_or_obj check_permissions_for_obj N/A SecureControllerMeta N/A type N/A N/A 
    Used to apply security to a controller.
    Implementations of SecureController should extend the
    `check_permissions` method to return a True or False
    value (depending on whether or not the user has permissions
    to the controller).
     __init__ N/A N/A cls name bases dict_ N/A N/A N/A N/A cls _pecan N/A dict secured Protected check_permissions N/A cls check_permissions unlocked N/A N/A N/A name value N/A N/A getmembers cls N/A N/A N/A N/A N/A N/A six PY3 isfunction ismethod value N/A N/A N/A N/A iscontroller value N/A N/A N/A N/A value _pecan get secured None N/A N/A wrapped N/A _make_wrapper value N/A N/A N/A wrapped _pecan N/A secured Protected N/A N/A N/A wrapped _pecan N/A check_permissions N/A cls check_permissions N/A N/A setattr cls name wrapped N/A N/A N/A hasattr value __class__ N/A N/A N/A N/A N/A name startswith __ N/A N/A name endswith __ N/A N/A N/A N/A isinstance value _UnlockedAttribute N/A N/A N/A N/A N/A N/A cls _pecan N/A unlocked append N/A value obj N/A N/A setattr cls name N/A value obj N/A N/A N/A isinstance value _SecuredAttribute N/A N/A N/A N/A N/A N/A cls _pecan N/A unlocked append value N/A N/A SecureControllerBase N/A object N/A check_permissions N/A N/A cls N/A N/A N/A 
        Returns `True` or `False` to grant access.  Implemented in subclasses
        of :class:`SecureController`.
         N/A False N/A classmethod N/A N/A SecureController N/A SecureControllerMeta SecureController N/A SecureControllerBase N/A __doc__ N/A SecureControllerMeta __doc__ _make_wrapper N/A N/A f N/A N/A N/A return a wrapped function with a copy of the _pecan context wrapper N/A N/A N/A args kwargs N/A N/A N/A f args kwargs N/A N/A wraps f N/A N/A wrapper _pecan N/A N/A N/A f _pecan copy N/A wrapper N/A handle_security N/A N/A controller im_self N/A None N/A N/A  Checks the security of a controller.   N/A N/A N/A N/A controller _pecan get secured False N/A N/A check_permissions N/A N/A controller _pecan N/A check_permissions N/A N/A isinstance check_permissions N/A six string_types N/A N/A check_permissions N/A getattr N/A im_self N/A N/A six get_method_self controller check_permissions N/A N/A N/A check_permissions N/A N/A N/A exc HTTPUnauthorized N/A cross_boundary N/A N/A prev_obj obj N/A N/A N/A  Check permissions as we move between object instances.  N/A N/A prev_obj None N/A N/A N/A N/A isinstance obj _SecuredAttribute N/A N/A N/A obj parent prev_obj N/A N/A hasattr prev_obj _pecan N/A N/A N/A obj N/A N/A N/A prev_obj _pecan get unlocked N/A N/A N/A N/A handle_security prev_obj N/A