<s> from __future__ import unicode_literals <EOL> from djblets . util . decorators import augment_method_from <EOL> from reviewboard . webapi . resources . base_diff_comment import BaseDiffCommentResource <EOL> class FileDiffCommentResource ( BaseDiffCommentResource ) : <EOL> """<STR_LIT>""" <EOL> allowed_methods = ( '<STR_LIT:GET>' , ) <EOL> policy_id = '<STR_LIT>' <EOL> model_parent_key = '<STR_LIT>' <EOL> uri_object_key = None <EOL> mimetype_list_resource_name = '<STR_LIT>' <EOL> mimetype_item_resource_name = '<STR_LIT>' <EOL> def get_queryset ( self , request , diff_revision , filediff_id , <EOL> * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> q = super ( FileDiffCommentResource , self ) . get_queryset ( <EOL> request , * args , ** kwargs ) <EOL> return q . filter ( filediff__diffset__revision = diff_revision , <EOL> filediff = filediff_id ) <EOL> @ augment_method_from ( BaseDiffCommentResource ) <EOL> def get_list ( self , request , diff_revision = None , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> filediff_comment_resource = FileDiffCommentResource ( ) </s>
