@check_login_required
@check_local_site_access
def view_screenshot(request, review_request_id, screenshot_id, local_site=None):
 (review_request, response) = _find_review_request(request, review_request_id, local_site)
 if (not review_request):
  return response
 draft = review_request.get_draft(request.user)
 review_request_q = (Q(review_request=review_request) | Q(inactive_review_request=review_request))
 if draft:
  review_request_q |= (Q(drafts=draft) | Q(inactive_drafts=draft))
 screenshot = get_object_or_404(Screenshot, (Q(pk=screenshot_id) & review_request_q))
 review_ui = LegacyScreenshotReviewUI(review_request, screenshot)
 return review_ui.render_to_response(request)

@ check_login_required @ check_local_site_access def view_screenshot ( request , review_request_id , screenshot_id , local_site = None ) : ( review_request , response ) = _find_review_request ( request , review_request_id , local_site ) if ( not review_request ) : return response draft = review_request . get_draft ( request . user ) review_request_q = ( Q ( review_request = review_request ) | Q ( inactive_review_request = review_request ) ) if draft : review_request_q |= ( Q ( drafts = draft ) | Q ( inactive_drafts = draft ) ) screenshot = get_object_or_404 ( Screenshot , ( Q ( pk = screenshot_id ) & review_request_q ) ) review_ui = LegacyScreenshotReviewUI ( review_request , screenshot ) return review_ui . render_to_response ( request )
displays a screenshot .