Module Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad ListLoad Str Str Str Str Str Assign NameStore Call NameLoad keyword Str keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword Dict Str Str Assign NameStore Call NameLoad keyword Str keyword Dict Str Str Assign NameStore Call NameLoad keyword Str keyword Dict Str Str Assign NameStore Call NameLoad keyword Str keyword Dict Str Str keyword Dict Str Str Assign NameStore Call NameLoad keyword Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Dict ClassDef bases body Assign NameStore Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr If Call AttributeLoad NameLoad attr body Return NameLoad Return BoolOpAnd CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr If Call AttributeLoad NameLoad attr body Return NameLoad Return BoolOpAnd CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareGt Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assert Call NameLoad NameLoad NameLoad Str Assign NameStore Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr If NameLoad body If BoolOpAnd CompareIs Call AttributeLoad NameLoad attr Str NameLoad NameLoad AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str orelse If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str NameLoad body Raise Call NameLoad keyword Dict Str Str keyword Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr UnaryOpNot NameLoad UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str NameLoad body Raise Call NameLoad Str orelse If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str orelse If BoolOpAnd Call NameLoad AttributeLoad NameLoad attr NameLoad CompareNotIn AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad keyword Dict Str Str keyword Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Str keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Dict Str Str ClassDef bases body Assign NameStore Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Index Str Index Str Return Call NameLoad Str keyword Dict Str Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr If BoolOpAnd CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr Str NameLoad body Raise Call NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad keyword Str keyword NameLoad decorator_list
N/A N/A bleach rest_framework serializers ser modularodm Q framework.auth.core Auth framework.exceptions PermissionsError framework.guid.model Guid website.files.models StoredFileNode website.project.model Comment rest_framework.exceptions ValidationError PermissionDenied api.base.exceptions InvalidModelValueError Conflict api.base.utils absolute_reverse api.base.settings osf_settings api.base.serializers JSONAPISerializer TargetField RelationshipField IDField TypeField LinksField AuthorizedCharField CommentReport N/A object N/A __init__ N/A N/A self user_id category text N/A N/A N/A N/A self _id user_id N/A N/A self category category N/A N/A self text text N/A N/A CommentSerializer N/A JSONAPISerializer N/A N/A filterable_fields N/A frozenset N/A deleted date_created date_modified page target N/A id N/A IDField source _id read_only True N/A type N/A TypeField N/A content N/A AuthorizedCharField source get_content required True max_length N/A osf_settings COMMENT_MAXLENGTH N/A page N/A N/A ser CharField read_only True N/A target N/A TargetField link_type related meta N/A type get_target_type N/A user N/A RelationshipField related_view users:user-detail related_view_kwargs N/A user_id <user._id> N/A node N/A RelationshipField related_view nodes:node-detail related_view_kwargs N/A node_id <node._id> N/A replies N/A RelationshipField self_view nodes:node-comments self_view_kwargs N/A node_id <node._id> filter N/A target <pk> N/A reports N/A RelationshipField related_view comments:comment-reports related_view_kwargs N/A comment_id <pk> N/A date_created N/A N/A ser DateTimeField read_only True N/A date_modified N/A N/A ser DateTimeField read_only True N/A modified N/A N/A ser BooleanField read_only True default False N/A deleted N/A N/A ser BooleanField read_only True source is_deleted default False N/A is_abuse N/A N/A ser SerializerMethodField help_text Whether the current user reported this comment. N/A has_children N/A N/A ser SerializerMethodField help_text Whether this comment has any replies. N/A can_edit N/A N/A ser SerializerMethodField help_text Whether the current user can edit this comment. N/A links N/A LinksField N/A Meta N/A N/A N/A type_ comments N/A get_is_abuse N/A N/A self obj N/A N/A N/A user N/A N/A N/A self context N/A request user N/A N/A N/A user is_anonymous N/A N/A False N/A N/A N/A N/A user _id N/A obj reports N/A N/A N/A N/A N/A obj reports N/A N/A user _id get retracted True N/A get_can_edit N/A N/A self obj N/A N/A N/A user N/A N/A N/A self context N/A request user N/A N/A N/A user is_anonymous N/A N/A False N/A N/A N/A N/A N/A obj user _id N/A user _id N/A N/A N/A obj node can_comment N/A Auth user N/A get_has_children N/A N/A self obj N/A N/A N/A N/A N/A N/A N/A N/A Comment find N/A Q target eq N/A N/A Guid load N/A obj _id count 0 N/A get_absolute_url N/A N/A self obj N/A N/A N/A N/A absolute_reverse comments:comment-detail kwargs N/A comment_id N/A obj _id N/A update N/A N/A self comment validated_data N/A N/A N/A N/A isinstance comment Comment comment must be a Comment N/A auth N/A Auth N/A N/A N/A self context N/A request user N/A validated_data N/A N/A N/A N/A N/A N/A validated_data get is_deleted None False N/A comment is_deleted N/A N/A N/A N/A N/A N/A comment undelete auth save True N/A N/A N/A PermissionsError N/A N/A N/A PermissionDenied Not authorized to undelete this comment. N/A N/A N/A get_content validated_data N/A N/A content N/A N/A validated_data pop get_content N/A N/A N/A N/A N/A comment edit content auth auth save True N/A N/A N/A PermissionsError N/A N/A N/A PermissionDenied Not authorized to edit this comment. N/A comment N/A get_target_type N/A N/A self obj N/A N/A N/A N/A N/A getattr N/A obj referent target_type None N/A N/A N/A InvalidModelValueError source N/A pointer /data/relationships/target/links/related/meta/type detail Invalid comment target type. N/A N/A N/A obj referent target_type N/A sanitize_data N/A N/A self N/A N/A N/A ret N/A N/A N/A super CommentSerializer self sanitize_data N/A content N/A N/A N/A self validated_data get get_content None N/A content N/A N/A N/A ret N/A get_content N/A N/A bleach clean content N/A ret N/A N/A CommentCreateSerializer N/A CommentSerializer N/A N/A target_type N/A N/A ser SerializerMethodField method_name get_validated_target_type get_validated_target_type N/A N/A self obj N/A N/A N/A target N/A obj target N/A target_type N/A N/A N/A N/A N/A self context N/A request data get target_type N/A expected_target_type N/A N/A self get_target_type target N/A N/A target_type expected_target_type N/A N/A N/A Conflict N/A N/A Invalid target type. Expected "{0}", got "{1}." format expected_target_type target_type N/A target_type N/A get_target N/A N/A self node_id target_id N/A N/A N/A target N/A N/A Guid load target_id N/A N/A N/A target N/A N/A getattr N/A target referent belongs_to_node None N/A N/A N/A ValueError Invalid comment target. N/A N/A N/A N/A N/A N/A target referent belongs_to_node node_id N/A N/A N/A ValueError Cannot post to comment target on another node. N/A N/A N/A N/A isinstance N/A target referent StoredFileNode N/A N/A N/A target referent provider N/A osf_settings ADDONS_COMMENTABLE N/A N/A N/A ValueError Comments are not supported for this file provider. N/A target N/A create N/A N/A self validated_data N/A N/A N/A user N/A validated_data N/A user N/A auth N/A Auth user N/A node N/A validated_data N/A node N/A target_id N/A N/A N/A N/A N/A self context N/A request data get id N/A N/A N/A target N/A N/A self get_target N/A node _id target_id N/A N/A N/A ValueError N/A N/A N/A InvalidModelValueError source N/A pointer /data/relationships/target/data/id detail N/A N/A Invalid comment target '{}'. format target_id N/A N/A validated_data N/A target target N/A N/A validated_data N/A content N/A N/A validated_data pop get_content N/A N/A N/A comment N/A N/A Comment create auth auth validated_data N/A N/A N/A PermissionsError N/A N/A N/A PermissionDenied Not authorized to comment on this project. N/A comment N/A N/A CommentDetailSerializer N/A CommentSerializer N/A N/A 
    Overrides CommentSerializer to make id required.
     N/A id N/A IDField source _id required True N/A deleted N/A N/A ser BooleanField source is_deleted required True N/A CommentReportSerializer N/A JSONAPISerializer N/A N/A id N/A IDField source _id read_only True N/A type N/A TypeField N/A category N/A N/A ser ChoiceField choices N/A N/A spam Spam or advertising N/A hate Hate speech N/A violence Violence or harmful behavior required True N/A message N/A N/A ser CharField source text required False allow_blank True N/A links N/A LinksField N/A self get_absolute_url Meta N/A N/A N/A type_ comment_reports N/A get_absolute_url N/A N/A self obj N/A N/A N/A comment_id N/A N/A N/A N/A N/A self context N/A request parser_context N/A kwargs N/A comment_id N/A N/A absolute_reverse comments:report-detail kwargs N/A comment_id user_id comment_id N/A obj _id N/A create N/A N/A self validated_data N/A N/A N/A user N/A N/A N/A self context N/A request user N/A comment N/A N/A N/A N/A self context N/A view get_comment N/A N/A N/A N/A user _id N/A comment reports N/A N/A N/A N/A N/A comment reports N/A N/A user _id get retracted True N/A N/A N/A ValidationError Comment already reported. N/A N/A N/A N/A N/A comment report_abuse user save True validated_data N/A N/A N/A ValueError N/A N/A N/A ValidationError You cannot report your own comment. N/A N/A CommentReport N/A user _id validated_data N/A update N/A N/A self comment_report validated_data N/A N/A N/A user N/A N/A N/A self context N/A request user N/A comment N/A N/A N/A N/A self context N/A view get_comment N/A N/A N/A user _id N/A comment_report _id N/A N/A N/A ValidationError You cannot report a comment on behalf of another user. N/A N/A N/A N/A N/A comment report_abuse user save True validated_data N/A N/A N/A ValueError N/A N/A N/A ValidationError You cannot report your own comment. N/A N/A CommentReport N/A user _id validated_data N/A N/A CommentReportDetailSerializer N/A CommentReportSerializer N/A N/A 
    Overrides CommentReportSerializer to make id required.
     N/A id N/A IDField source _id required True N/A