def _get_critical_checks_snippet(request, unit):
 if (not unit.has_critical_checks()):
  return None
 can_review = check_user_permission(request.user, 'review', unit.store.parent)
 ctx = {'canreview': can_review, 'unit': unit}
 template = loader.get_template('editor/units/xhr_checks.html')
 return template.render(context=ctx, request=request)

def _get_critical_checks_snippet ( request , unit ) : if ( not unit . has_critical_checks ( ) ) : return None can_review = check_user_permission ( request . user , 'review' , unit . store . parent ) ctx = { 'canreview' : can_review , 'unit' : unit } template = loader . get_template ( 'editor/units/xhr_checks.html' ) return template . render ( context = ctx , request = request )
retrieves the critical checks snippet .