Module ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias alias alias alias alias alias alias alias Assign NameStore Call NameLoad Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad Call NameLoad Str Call NameLoad Str Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr body Pass Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr body Raise NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Raise NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr body Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr body Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Pass decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr Num body With Call AttributeLoad NameLoad attr Num body Pass decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num FunctionDef arguments args defaults body Assign NameStore ListLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr body Pass Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr body Pass Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Num Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TupleLoad Str Str Assign NameStore Call NameLoad TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert Call AttributeLoad NameLoad attr NameLoad Assert Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TupleLoad Str Str TupleLoad Str Str Assign NameStore Call NameLoad TupleLoad Str Str TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Call NameLoad ListLoad TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Call NameLoad ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TupleLoad Str Str Assign NameStore Call NameLoad TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert Call AttributeLoad NameLoad attr NameLoad Assert Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TupleLoad Str Str TupleLoad Str Str Assign NameStore Call NameLoad TupleLoad Str Str TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Call NameLoad ListLoad TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Call NameLoad ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareIn TupleLoad Str Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore BinOpBitAnd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Str Call NameLoad Str Assign NameStore Call NameLoad Call NameLoad Str Call NameLoad Str Assign NameStore BinOpBitOr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Str Call NameLoad Str Assign NameStore Call NameLoad Call NameLoad Str Assert Call AttributeLoad NameLoad attr NameLoad Assert CompareIn NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Assert CompareEq AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Assert CompareEq AttributeLoad NameLoad attr NameLoad Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad keyword NameLoad attr decorator_list decorator_list
N/A __future__ with_statement N/A unittest flask Flask Response flask_principal Principal Permission Denial RoleNeed PermissionDenied identity_changed Identity identity_loaded N/A anon_permission N/A Permission N/A admin_permission N/A Permission N/A RoleNeed admin N/A admin_or_editor N/A Permission N/A RoleNeed admin N/A RoleNeed editor N/A editor_permission N/A Permission N/A RoleNeed editor N/A admin_denied N/A Denial N/A RoleNeed admin _on_principal_init N/A N/A sender identity N/A N/A N/A N/A N/A identity id ali N/A N/A N/A N/A N/A identity provides add N/A RoleNeed admin N/A ReraiseException N/A Exception N/A N/A For checking reraising N/A mkapp N/A N/A with_factory N/A False N/A N/A app N/A Flask __name__ N/A N/A app secret_key notverysecret N/A N/A app debug True N/A with_factory N/A N/A p N/A Principal N/A N/A N/A p init_app app N/A N/A p N/A Principal app N/A N/A N/A identity_loaded connect _on_principal_init index N/A N/A N/A N/A N/A N/A N/A admin_permission require N/A N/A N/A N/A Response hello N/A N/A N/A app route / a N/A N/A N/A N/A N/A N/A Response hello N/A N/A N/A app route /a N/A N/A admin_permission require b N/A N/A N/A N/A N/A N/A Response hello N/A N/A N/A app route /b N/A N/A anon_permission require c N/A N/A N/A N/A N/A N/A N/A anon_permission require N/A N/A ReraiseException N/A N/A N/A app route /c d N/A N/A N/A N/A N/A ReraiseException N/A N/A N/A app route /d N/A N/A anon_permission require e N/A N/A N/A N/A N/A i N/A mkadmin N/A N/A N/A identity_changed send app identity i N/A N/A N/A admin_permission require N/A N/A N/A Response hello N/A N/A N/A app route /e f N/A N/A N/A N/A N/A i N/A mkadmin N/A N/A N/A identity_changed send app identity i N/A N/A N/A admin_or_editor require N/A N/A N/A Response hello N/A N/A N/A app route /f g N/A N/A N/A N/A N/A N/A Response hello N/A N/A N/A app route /g N/A N/A admin_permission require N/A N/A editor_permission require h N/A N/A N/A N/A N/A i N/A Identity james N/A N/A N/A identity_changed send app identity i N/A N/A N/A admin_permission require N/A N/A N/A N/A editor_permission require N/A N/A N/A N/A N/A app route /h j N/A N/A N/A N/A N/A i N/A Identity james N/A N/A N/A identity_changed send app identity i N/A N/A N/A admin_permission require 403 N/A N/A N/A N/A editor_permission require 403 N/A N/A N/A N/A N/A app route /j k N/A N/A N/A N/A N/A N/A Response hello N/A N/A N/A app route /k N/A N/A admin_permission require 403 l N/A N/A N/A N/A N/A s N/A N/A N/A admin_or_editor N/A N/A N/A N/A s append not admin N/A i N/A Identity ali N/A N/A N/A identity_changed send app identity i N/A admin_or_editor N/A N/A N/A N/A s append now admin N/A N/A Response N/A N/A join s N/A N/A N/A app route /l m N/A N/A N/A N/A N/A N/A N/A admin_denied require N/A N/A N/A N/A Response OK N/A N/A N/A app route /m n N/A N/A N/A N/A N/A i N/A mkadmin N/A N/A N/A identity_changed send app identity i N/A N/A N/A admin_denied require N/A N/A N/A N/A Response OK N/A N/A N/A app route /n o N/A N/A N/A N/A N/A N/A N/A admin_or_editor test N/A N/A Response OK N/A N/A N/A app route /o p N/A N/A N/A N/A N/A N/A N/A admin_or_editor test 404 N/A N/A Response OK N/A N/A N/A app route /p N/A app N/A mkadmin N/A N/A N/A N/A N/A i N/A Identity ali N/A i N/A PrincipalUnitTests N/A N/A unittest TestCase N/A test_permission_union N/A N/A self N/A N/A N/A p1 N/A Permission N/A a b N/A p2 N/A Permission N/A a c N/A p3 N/A N/A p1 union p2 N/A N/A N/A p1 issubset p3 N/A N/A N/A p2 issubset p3 N/A test_permission_difference N/A N/A self N/A N/A N/A p1 N/A Permission N/A a b N/A a c N/A p2 N/A Permission N/A a c N/A d e N/A p3 N/A N/A p1 difference p2 N/A N/A N/A p3 needs N/A set N/A N/A a b N/A p4 N/A N/A p2 difference p1 N/A N/A N/A p4 needs N/A set N/A N/A d e N/A test_permission_union_denial N/A N/A self N/A N/A N/A p1 N/A Permission N/A a b N/A p2 N/A Denial N/A a c N/A p3 N/A N/A p1 union p2 N/A N/A N/A p1 issubset p3 N/A N/A N/A p2 issubset p3 N/A test_permission_difference_denial N/A N/A self N/A N/A N/A p1 N/A Denial N/A a b N/A a c N/A p2 N/A Denial N/A a c N/A d e N/A p3 N/A N/A p1 difference p2 N/A N/A N/A p3 excludes N/A set N/A N/A a b N/A p4 N/A N/A p2 difference p1 N/A N/A N/A p4 excludes N/A set N/A N/A d e N/A test_reverse_permission N/A N/A self N/A N/A N/A p N/A Permission N/A a b N/A d N/A N/A p reverse N/A N/A N/A a b N/A d excludes N/A test_permission_and N/A N/A self N/A N/A N/A p1 N/A Permission N/A RoleNeed boss N/A p2 N/A Permission N/A RoleNeed lackey N/A p3 N/A p1 p2 N/A p4 N/A N/A p1 union p2 N/A N/A N/A p3 needs N/A p4 needs N/A test_permission_or N/A N/A self N/A N/A N/A p1 N/A Permission N/A RoleNeed boss N/A RoleNeed lackey N/A p2 N/A Permission N/A RoleNeed lackey N/A RoleNeed underling N/A p3 N/A p1 p2 N/A p4 N/A N/A p1 difference p2 N/A N/A N/A p3 needs N/A p4 needs N/A test_contains N/A N/A self N/A N/A N/A p1 N/A Permission N/A RoleNeed boss N/A RoleNeed lackey N/A p2 N/A Permission N/A RoleNeed lackey N/A N/A N/A p2 issubset p1 N/A N/A p2 p1 N/A N/A PrincipalApplicationTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self client N/A N/A N/A mkapp test_client N/A test_deny_with N/A N/A self N/A N/A N/A N/A N/A self assertRaises PermissionDenied N/A N/A self client open / N/A test_deny_view N/A N/A self N/A N/A N/A N/A N/A self assertRaises PermissionDenied N/A N/A self client open /a N/A test_allow_view N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self client open /b data hello N/A test_reraise N/A N/A self N/A N/A N/A N/A N/A self assertRaises ReraiseException N/A N/A self client open /c N/A test_error_view N/A N/A self N/A N/A N/A N/A N/A self assertRaises ReraiseException N/A N/A self client open /d N/A test_identity_changed N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self client open /e data hello N/A test_identity_load N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self client open /e data hello N/A N/A N/A N/A N/A N/A self client open /a data hello N/A test_or_permissions N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self client open /e data hello N/A N/A N/A N/A N/A N/A self client open /f data hello N/A test_and_permissions_view_denied N/A N/A self N/A N/A N/A N/A N/A self assertRaises PermissionDenied N/A N/A self client open /g N/A test_and_permissions_view N/A N/A self N/A N/A N/A N/A N/A self assertRaises PermissionDenied N/A N/A self client open /g N/A test_and_permissions_view_with_http_exc N/A N/A self N/A N/A N/A response N/A N/A N/A self client open /j N/A N/A N/A response status_code 403 N/A test_and_permissions_view_with_http_exc_decorated N/A N/A self N/A N/A N/A response N/A N/A N/A self client open /k N/A N/A N/A response status_code 403 N/A test_and_permissions_view_with_custom_errhandler N/A N/A self N/A N/A N/A app N/A mkapp handle_permission_denied N/A N/A error N/A N/A N/A N/A N/A error description admin_permission N/A N/A Response OK N/A N/A N/A app errorhandler 403 N/A N/A self client N/A N/A app test_client N/A response N/A N/A N/A self client open /k N/A N/A N/A response status_code 200 N/A test_permission_bool N/A N/A self N/A N/A N/A response N/A N/A N/A self client open /l N/A N/A N/A response status_code 200 N/A N/A not admin N/A response data N/A N/A now admin N/A response data N/A test_denied_passes N/A N/A self N/A N/A N/A response N/A N/A N/A self client open /m N/A N/A N/A response status_code 200 N/A test_denied_fails N/A N/A self N/A N/A N/A N/A N/A self assertRaises PermissionDenied N/A N/A self client open /n N/A test_permission_test N/A N/A self N/A N/A N/A N/A N/A self assertRaises PermissionDenied N/A N/A self client open /o N/A test_permission_test_with_http_exc N/A N/A self N/A N/A N/A response N/A N/A N/A self client open /p N/A N/A N/A response status_code 404 N/A N/A FactoryMethodPrincipalApplicationTests N/A PrincipalApplicationTests N/A setUp N/A N/A self N/A N/A N/A N/A self client N/A N/A N/A mkapp with_factory True test_client N/A N/A