<s> from __future__ import unicode_literals <EOL> from djblets . util . decorators import augment_method_from <EOL> from reviewboard . webapi . resources import resources <EOL> from reviewboard . webapi . resources . base_screenshot import BaseScreenshotResource <EOL> class ScreenshotResource ( BaseScreenshotResource ) : <EOL> """<STR_LIT>""" <EOL> model_parent_key = '<STR_LIT>' <EOL> item_child_resources = [ <EOL> resources . screenshot_comment , <EOL> ] <EOL> allowed_methods = ( '<STR_LIT:GET>' , '<STR_LIT:POST>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> def get_parent_object ( self , obj ) : <EOL> return obj . get_review_request ( ) <EOL> @ augment_method_from ( BaseScreenshotResource ) <EOL> def get_list ( self , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> @ augment_method_from ( BaseScreenshotResource ) <EOL> def create ( self , request , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> @ augment_method_from ( BaseScreenshotResource ) <EOL> def update ( self , request , caption = None , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> @ augment_method_from ( BaseScreenshotResource ) <EOL> def delete ( self , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> screenshot_resource = ScreenshotResource ( ) </s>
