parameters: (self, picture, id)
docstring: Returns file linked to given picture.
docstring_summary: Returns file linked to given picture.
docstring_tokens: Returns file linked to given picture .
function: def on_picture_found(self, picture, id):
          '''
          Returns file linked to given picture.
          '''
          try:
              picfile = picture.fetch_attachment(self.filename)
              self.set_header("Content-Type", picture.contentType)
              self.write(picfile)
              self.finish()
          except ResourceNotFound:
              self.return_failure("Picture not found.", 404)
function_tokens: def on_picture_found ( self , picture , id ) : try : picfile = picture . fetch_attachment ( self . filename ) self . set_header ( "Content-Type" , picture . contentType ) self . write ( picfile ) self . finish ( ) except ResourceNotFound : self . return_failure ( "Picture not found." , 404 )