Module Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Return TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad orelse If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad orelse If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad orelse If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr keyword Dict Str Str Str Str Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore SubscriptStore NameLoad Index Str SubscriptStore NameLoad Index Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword NameLoad If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad AttributeLoad NameLoad attr keyword Call NameLoad keyword Str Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad If Call NameLoad SubscriptLoad NameLoad Index Str Str NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Str NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr keyword Call NameLoad keyword Str orelse Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list If NameLoad body Return Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr keyword Call NameLoad keyword Str Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr keyword Dict Str Str Str Str Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr keyword Dict Str Str Str Str Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return NameLoad If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad CompareNotEq NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Raise Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Dict Str Str attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Assign NameStore NameLoad Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Str Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body ImportFrom alias TryExcept body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad Str Str NameLoad attr handlers ExceptHandler type NameLoad body Pass If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot NameLoad body If BoolOpAnd UnaryOpNot NameLoad NameLoad body If UnaryOpNot Call NameLoad keyword NameLoad keyword NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr orelse If CompareNotIn NameLoad AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Raise Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Return BoolOpOr NameLoad Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr orelse Raise Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Call AttributeLoad Str attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str IfExp NameLoad AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr If CompareIs NameLoad NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad orelse Return Call Call Call NameLoad Str NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A functools N/A httplib http furl furl flask request modularodm Q modularodm.exceptions ModularOdmException framework status framework.auth Auth cas framework.flask redirect framework.exceptions HTTPError framework.auth.decorators collect_auth framework.mongo.utils get_or_http_error website.models Node website settings N/A _load_node_or_fail N/A N/A N/A pk N/A N/A get_or_http_error Node pk _kwargs_to_nodes N/A N/A kwargs N/A N/A N/A Retrieve project and component objects from keyword arguments.

    :param dict kwargs: Dictionary of keyword arguments
    :return: Tuple of parent and node

     N/A node N/A N/A N/A kwargs get node N/A N/A kwargs get project N/A parent N/A N/A kwargs get parent N/A node N/A N/A N/A parent node N/A pid N/A N/A kwargs get pid N/A nid N/A N/A kwargs get nid N/A N/A pid nid N/A N/A node N/A _load_node_or_fail nid N/A parent N/A _load_node_or_fail pid N/A N/A N/A pid N/A nid N/A N/A node N/A _load_node_or_fail pid N/A N/A N/A nid N/A pid N/A N/A node N/A _load_node_or_fail nid N/A N/A N/A N/A pid N/A nid N/A N/A N/A HTTPError N/A http NOT_FOUND data N/A message_short message_long Node not found No Node with that primary key could be found N/A N/A parent node N/A _inject_nodes N/A N/A kwargs N/A N/A N/A N/A N/A kwargs N/A parent N/A kwargs N/A node N/A _kwargs_to_nodes kwargs N/A must_not_be_rejected N/A N/A func N/A N/A N/A Ensures approval/disapproval requests can't reach Sanctions that have
    already been rejected.
     wrapped N/A N/A N/A args kwargs N/A N/A node N/A get_or_http_error Node N/A N/A kwargs get nid N/A N/A kwargs get pid allow_deleted True N/A N/A N/A node sanction N/A N/A node sanction is_rejected N/A N/A N/A HTTPError N/A http GONE data N/A dict message_long This registration has been rejected N/A N/A func args kwargs N/A N/A N/A functools wraps func N/A wrapped N/A must_be_valid_project N/A N/A func retractions_valid N/A None False N/A N/A  Ensures permissions to retractions are never implicitly granted.  must_be_valid_project_inner N/A N/A func N/A N/A wrapped N/A N/A N/A args kwargs N/A N/A N/A _inject_nodes kwargs N/A N/A getattr N/A kwargs N/A node is_collection True N/A N/A N/A HTTPError N/A http NOT_FOUND N/A N/A N/A retractions_valid N/A getattr N/A N/A kwargs N/A node retraction is_retracted False N/A N/A N/A HTTPError N/A http BAD_REQUEST data N/A dict message_long Viewing withdrawn registrations is not permitted N/A N/A N/A func args kwargs N/A N/A N/A functools wraps func N/A wrapped N/A N/A func N/A N/A N/A must_be_valid_project_inner func N/A must_be_valid_project_inner N/A must_be_public_registration N/A N/A func N/A N/A wrapped N/A N/A N/A args kwargs N/A N/A N/A _inject_nodes kwargs N/A node N/A kwargs N/A node N/A N/A N/A N/A node is_public N/A N/A node is_registration N/A N/A N/A HTTPError N/A http BAD_REQUEST data N/A dict message_long Must be a public registration to view N/A N/A func args kwargs N/A N/A N/A functools wraps func N/A wrapped N/A must_not_be_registration N/A N/A func N/A N/A wrapped N/A N/A N/A args kwargs N/A N/A N/A _inject_nodes kwargs N/A node N/A kwargs N/A node N/A N/A N/A node is_registration N/A N/A node archiving N/A N/A N/A HTTPError N/A http BAD_REQUEST data N/A message_short message_long Registered Nodes are immutable The operation you're trying to do cannot be applied to registered Nodes, which are immutable N/A N/A func args kwargs N/A N/A N/A functools wraps func N/A wrapped N/A must_be_registration N/A N/A func N/A N/A wrapped N/A N/A N/A args kwargs N/A N/A N/A _inject_nodes kwargs N/A node N/A kwargs N/A node N/A N/A N/A node is_registration N/A N/A N/A HTTPError N/A http BAD_REQUEST data N/A message_short message_long Registered Nodes only This view is restricted to registered Nodes only N/A N/A func args kwargs N/A N/A N/A functools wraps func N/A wrapped N/A check_can_access N/A N/A node user key api_node N/A None None N/A N/A View helper that returns whether a given user can access a node.
    If ``user`` is None, returns False.

    :rtype: boolean
    :raises: HTTPError (403) if user cannot access the node
     N/A N/A user None N/A N/A False N/A N/A N/A N/A N/A node can_view N/A Auth user user N/A api_node node N/A N/A N/A key N/A node private_link_keys_deleted N/A N/A N/A N/A status push_status_message The view-only links you used are expired. trust False N/A N/A HTTPError N/A http FORBIDDEN N/A True N/A check_key_expired N/A N/A key node url N/A N/A N/A check if key expired if is return url with args so it will push status message
        else return url
        :param str key: the private link key passed in
        :param Node node: the node object wants to access
        :param str url: the url redirect to
        :return: url with pushed message added if key expired else just url
     N/A N/A key N/A node private_link_keys_deleted N/A N/A url N/A N/A N/A N/A furl url add N/A status expired url N/A url N/A _must_be_contributor_factory N/A N/A include_public include_view_only_anon N/A True N/A N/A Decorator factory for authorization wrappers. Decorators verify whether
    the current user is a contributor on the current project, or optionally
    whether the current project is public.

    :param bool include_public: Check whether current project is public
    :param bool include_view_only_anon: Checks view_only anonymized links
    :return: Authorization decorator

     wrapper N/A N/A func N/A N/A wrapped N/A N/A N/A args kwargs N/A N/A response None N/A N/A _inject_nodes kwargs N/A node N/A kwargs N/A node N/A N/A kwargs N/A auth N/A N/A Auth from_kwargs N/A N/A N/A request args to_dict kwargs N/A user N/A N/A kwargs N/A auth user N/A key N/A N/A N/A N/A N/A request args get view_only strip / N/A N/A N/A kwargs N/A auth private_key key N/A link_anon None N/A N/A include_view_only_anon N/A website.models PrivateLink N/A N/A N/A link_anon N/A N/A N/A PrivateLink find_one N/A Q key eq key anonymous N/A N/A N/A ModularOdmException N/A N/A N/A N/A N/A N/A node is_public N/A include_public N/A N/A N/A N/A include_view_only_anon link_anon N/A N/A N/A N/A check_can_access node node user user N/A N/A N/A HTTPError N/A http UNAUTHORIZED N/A N/A N/A key N/A node private_link_keys_active N/A N/A N/A N/A check_can_access node node user user key key N/A N/A redirect_url N/A check_key_expired key key node node url N/A request url N/A N/A N/A N/A N/A request headers get Content-Type application/json N/A N/A N/A HTTPError N/A http UNAUTHORIZED N/A N/A response N/A redirect N/A N/A cas get_login_url redirect_url N/A N/A response N/A func args kwargs N/A N/A N/A functools wraps func N/A wrapped N/A N/A wrapper N/A N/A must_be_contributor N/A _must_be_contributor_factory False N/A must_be_contributor_or_public N/A _must_be_contributor_factory True N/A must_be_contributor_or_public_but_not_anonymized N/A _must_be_contributor_factory include_public True include_view_only_anon False must_have_addon N/A N/A addon_name model N/A N/A N/A Decorator factory that ensures that a given addon has been added to
    the target node. The decorated function will throw a 404 if the required
    addon is not found. Must be applied after a decorator that adds `node` and
    `project` to the target function's keyword arguments, such as
    `must_be_contributor.

    :param str addon_name: Name of addon
    :param str model: Name of model
    :returns: Decorator function

     wrapper N/A N/A func N/A N/A wrapped N/A N/A N/A args kwargs N/A N/A N/A model node N/A N/A N/A _inject_nodes kwargs N/A owner N/A kwargs N/A node N/A N/A N/A model user N/A N/A auth N/A N/A kwargs get auth N/A owner N/A auth N/A auth user None N/A N/A owner None N/A N/A N/A HTTPError N/A http UNAUTHORIZED N/A N/A N/A HTTPError N/A http BAD_REQUEST N/A addon N/A N/A owner get_addon addon_name N/A N/A addon None N/A N/A N/A HTTPError N/A http BAD_REQUEST N/A N/A kwargs N/A N/A N/A {0}_addon format model addon N/A N/A func args kwargs N/A N/A N/A functools wraps func collect_auth N/A wrapped N/A N/A wrapper N/A must_be_addon_authorizer N/A N/A addon_name N/A N/A N/A 

    :param str addon_name: Name of addon
    :returns: Decorator function

     wrapper N/A N/A func N/A N/A wrapped N/A N/A N/A args kwargs N/A N/A node_addon N/A N/A kwargs get node_addon N/A N/A node_addon N/A N/A N/A _inject_nodes kwargs N/A node N/A kwargs N/A node N/A node_addon N/A N/A node get_addon addon_name N/A N/A node_addon N/A N/A N/A HTTPError N/A http BAD_REQUEST N/A N/A N/A node_addon user_settings N/A N/A N/A HTTPError N/A http BAD_REQUEST N/A auth N/A N/A kwargs get auth N/A user N/A N/A N/A kwargs get user N/A auth N/A auth user None N/A N/A N/A N/A node_addon user_settings owner user N/A N/A N/A HTTPError N/A http FORBIDDEN N/A N/A func args kwargs N/A N/A N/A functools wraps func collect_auth N/A wrapped N/A N/A wrapper N/A must_have_permission N/A N/A permission N/A N/A N/A Decorator factory for checking permissions. Checks that user is logged
    in and has necessary permissions for node. Node must be passed in keyword
    arguments to view function.

    :param list permissions: List of accepted permissions
    :returns: Decorator function for checking permissions
    :raises: HTTPError(http.UNAUTHORIZED) if not logged in
    :raises: HTTPError(http.FORBIDDEN) if missing permissions

     wrapper N/A N/A func N/A N/A wrapped N/A N/A N/A args kwargs N/A N/A N/A _inject_nodes kwargs N/A node N/A kwargs N/A node N/A N/A kwargs N/A auth N/A N/A Auth from_kwargs N/A N/A N/A request args to_dict kwargs N/A user N/A N/A kwargs N/A auth user N/A N/A user None N/A N/A N/A HTTPError N/A http UNAUTHORIZED N/A N/A N/A N/A node has_permission user permission N/A N/A N/A HTTPError N/A http FORBIDDEN N/A N/A func args kwargs N/A N/A N/A functools wraps func N/A wrapped N/A N/A wrapper N/A must_have_write_permission_or_public_wiki N/A N/A func N/A N/A N/A  Checks if user has write permission or wiki is public and publicly editable.  wrapped N/A N/A N/A args kwargs N/A N/A N/A _inject_nodes kwargs N/A wiki N/A N/A N/A kwargs N/A node get_addon wiki N/A N/A wiki N/A wiki is_publicly_editable N/A N/A N/A func args kwargs N/A N/A N/A N/A N/A must_have_permission write func args kwargs N/A N/A N/A functools wraps func N/A wrapped N/A http_error_if_disk_saving_mode N/A N/A func N/A N/A wrapper N/A N/A N/A args kwargs N/A N/A N/A _inject_nodes kwargs N/A node N/A kwargs N/A node N/A N/A settings DISK_SAVING_MODE N/A N/A N/A HTTPError N/A http METHOD_NOT_ALLOWED redirect_url N/A node url N/A N/A func args kwargs N/A N/A N/A functools wraps func N/A wrapper N/A