Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias Assign NameStore Call NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad attr NameLoad decorator_list For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIn Str ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad body For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad orelse If CompareIn Str ListComp Call AttributeLoad Call AttributeLoad NameLoad attr Str attr comprehension NameStore NameLoad body For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad orelse For NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Expr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad orelse Expr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad For NameStore NameLoad body If Call NameLoad NameLoad Str body AugAssignBitOr NameStore Call AttributeLoad NameLoad attr NameLoad orelse AugAssignBitOr NameStore CompareIn NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad For NameStore NameLoad body If Call NameLoad NameLoad Str body AugAssignBitAnd NameStore Call AttributeLoad NameLoad attr NameLoad orelse AugAssignBitAnd NameStore CompareIn NameLoad NameLoad Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad ListLoad Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call NameLoad Call NameLoad ListLoad Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Str Str Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return Call NameLoad Assign NameStore Call NameLoad NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body TryFinally body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Dict If CompareNotEq NameLoad Str body Return NameLoad finalbody For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body TryFinally body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore ListLoad finalbody If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body AugAssignSub NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call NameLoad decorator_list decorator_list Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad If CompareEq NameLoad NameLoad body Return ListLoad NameLoad handlers ExceptHandler type NameLoad body Pass Assign AttributeStore NameLoad attr ListLoad NameLoad Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad ListComp TupleLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad ListComp TupleLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list
N/A collections defaultdict six iteritems pyramid.interfaces IAuthorizationPolicy pyramid.security Authenticated Everyone zope.interface implementer daybed.backends exceptions backend_exceptions daybed logger N/A PERMISSIONS_SET N/A set N/A read_definition update_permissions read_permissions update_definition delete_model create_record read_all_records update_all_records delete_all_records read_own_records update_own_records delete_own_records default_model_permissions N/A N/A credentials_id N/A N/A N/A  Give all permissions to the model creator.
    Permissions of models created by anonymous (i.e. ``Everyone``)
    cannot be changed.
     N/A permissions N/A defaultdict list N/A perm PERMISSIONS_SET N/A N/A N/A N/A N/A permissions N/A perm append credentials_id N/A N/A credentials_id Everyone N/A N/A N/A N/A permissions pop update_permissions N/A permissions N/A merge_permissions N/A N/A original specified N/A N/A N/A  Merge permissions together, and handle the ``ALL`` shortcut.
     N/A permissions N/A dict_list2set original _add N/A N/A perm identifier N/A N/A N/A N/A N/A N/A N/A permissions setdefault perm N/A set add identifier N/A _discard N/A N/A perm identifier N/A N/A N/A N/A N/A N/A N/A permissions setdefault perm N/A set discard identifier N/A N/A N/A credentials_id perms N/A iteritems specified N/A N/A N/A -all N/A N/A N/A perm lower N/A perm perms N/A N/A perm PERMISSIONS_SET N/A N/A N/A _discard perm credentials_id N/A N/A N/A all N/A N/A N/A N/A N/A perm lstrip + lower N/A perm perms N/A N/A perm PERMISSIONS_SET N/A N/A N/A _add perm credentials_id N/A N/A perm N/A N/A N/A perm lower N/A perm perms N/A N/A N/A N/A perm startswith - N/A N/A N/A _discard N/A N/A perm lstrip - credentials_id N/A N/A N/A _add N/A N/A perm lstrip + credentials_id N/A N/A dict_set2list permissions N/A Any N/A list N/A matches N/A N/A self permissions N/A N/A N/A check False N/A perm self N/A N/A N/A hasattr perm matches N/A N/A check N/A N/A perm matches permissions N/A N/A check N/A perm permissions N/A check N/A N/A All N/A list N/A matches N/A N/A self permissions N/A N/A N/A check True N/A perm self N/A N/A N/A hasattr perm matches N/A N/A check N/A N/A perm matches permissions N/A N/A check N/A perm permissions N/A check N/A N/A N/A AUTHORS_PERMISSIONS N/A set N/A update_own_records delete_own_records read_own_records N/A VIEWS_PERMISSIONS_REQUIRED N/A get_models post_model get_model put_model delete_model get_definition get_permissions put_permissions post_record get_all_records get_records delete_records get_record put_record patch_record delete_record get_tokens post_token delete_token N/A All N/A All N/A create_model N/A All N/A read_definition read_permissions N/A Any N/A read_all_records read_own_records N/A All N/A create_model update_definition update_permissions delete_model N/A All N/A delete_model delete_all_records N/A All N/A read_definition N/A All N/A read_permissions N/A All N/A update_permissions N/A All N/A create_record N/A All N/A read_all_records N/A Any N/A read_all_records read_own_records N/A All N/A delete_all_records N/A Any N/A read_own_records read_all_records N/A All N/A create_record N/A Any N/A update_own_records update_all_records N/A Any N/A delete_own_records delete_all_records N/A Any N/A update_own_records update_all_records N/A Any N/A delete_own_records delete_all_records N/A All N/A manage_tokens N/A Any N/A create_token manage_tokens N/A All N/A manage_tokens DaybedAuthorizationPolicy N/A object N/A __init__ N/A N/A self model_creators token_creators token_managers N/A Everyone Everyone None N/A N/A N/A self model_creators N/A N/A self _handle_pyramid_constants model_creators N/A N/A self token_creators N/A N/A self _handle_pyramid_constants token_creators N/A N/A self token_managers N/A N/A self _handle_pyramid_constants token_managers N/A _handle_pyramid_constants N/A N/A self creators N/A N/A N/A N/A creators N/A N/A N/A set N/A creators N/A set creators N/A N/A Authenticated creators N/A N/A N/A N/A creators remove Authenticated N/A N/A N/A creators add Authenticated N/A N/A Everyone creators N/A N/A N/A N/A creators remove Everyone N/A N/A N/A creators add Everyone N/A creators N/A permits N/A N/A self context principals permission N/A N/A N/A Returns True or False depending if the token with the specified
        principals has access to the given permission.
         N/A principals N/A set principals N/A permissions_required N/A VIEWS_PERMISSIONS_REQUIRED N/A permission N/A current_permissions N/A set N/A N/A N/A principals intersection N/A self model_creators N/A N/A N/A N/A current_permissions add create_model N/A N/A N/A principals intersection N/A self token_creators N/A N/A N/A N/A current_permissions add create_token N/A N/A N/A principals intersection N/A self token_managers N/A N/A N/A N/A current_permissions add manage_token N/A model_id N/A context model_id N/A N/A model_id None N/A N/A N/A N/A N/A N/A model_permissions N/A N/A N/A context db get_model_permissions model_id N/A N/A N/A N/A backend_exceptions ModelNotFound N/A N/A model_permissions N/A N/A N/A permission post_model N/A N/A True N/A N/A N/A perm_name credentials_ids N/A iteritems model_permissions N/A N/A N/A N/A principals intersection credentials_ids N/A N/A N/A N/A current_permissions add perm_name N/A record_id N/A context record_id N/A N/A record_id None N/A N/A N/A N/A N/A N/A authors N/A N/A N/A context db get_record_authors model_id record_id N/A N/A N/A N/A backend_exceptions RecordNotFound N/A N/A authors N/A N/A N/A N/A N/A N/A principals intersection authors N/A N/A current_permissions AUTHORS_PERMISSIONS N/A N/A N/A logger debug Current permissions: %s current_permissions N/A N/A N/A context request permissions current_permissions N/A N/A N/A context request principals principals N/A N/A N/A permissions_required matches current_permissions N/A principals_allowed_by_permission N/A N/A self context permission N/A N/A N/A N/A NotImplementedError N/A N/A N/A implementer IAuthorizationPolicy RootFactory N/A object N/A __init__ N/A N/A self request N/A N/A N/A N/A self db N/A request db N/A matchdict N/A N/A request matchdict N/A N/A N/A self model_id N/A N/A matchdict get model_id N/A N/A self record_id N/A N/A matchdict get record_id N/A N/A self request request N/A N/A get_credentials N/A N/A request credentials_id N/A N/A N/A  Retrieve credentials from backend.
     N/A N/A credentials_id Everyone N/A N/A N/A Everyone None N/A N/A N/A stored_key N/A N/A N/A request db get_credentials_key credentials_id N/A N/A N/A N/A backend_exceptions CredentialsNotFound N/A N/A ValueError N/A N/A credentials_id stored_key N/A check_credentials N/A N/A credentials_id credentials_key request N/A N/A N/A  Retrieve credentials and check value of secret key.
    (Used by BasicAuth policy).
     N/A N/A N/A N/A _ stored_key N/A get_credentials request credentials_id N/A N/A stored_key credentials_key N/A N/A N/A credentials_id N/A N/A N/A ValueError N/A N/A N/A N/A request principals N/A Everyone N/A N/A N/A dict_set2list N/A N/A dict_set N/A N/A N/A N/A dict N/A N/A key N/A sorted value N/A N/A key value N/A iteritems dict_set N/A dict_list2set N/A N/A dict_list N/A N/A N/A N/A dict N/A N/A key N/A set value N/A N/A key value N/A iteritems dict_list N/A invert_permissions_matrix N/A N/A permissions_credentials_ids N/A N/A N/A Reverse from {perm: [credentials_ids]} to {credentials_id: [perms]}. N/A credentials_ids_permissions N/A defaultdict set N/A N/A perm credentials_ids N/A iteritems permissions_credentials_ids N/A N/A credentials_id credentials_ids N/A N/A N/A N/A N/A credentials_ids_permissions N/A credentials_id add perm N/A N/A dict_set2list credentials_ids_permissions N/A