@treeio_login_required
@handle_response_format
def service_record_view(request, service_record_id, response_format='html'):
 service_record = get_object_or_404(ItemServicing, pk=service_record_id)
 if (not request.user.profile.has_permission(service_record)):
  return user_denied(request, message="You don't have access to this ServiceRecord", response_format=response_format)
 context = _get_default_context(request)
 context.update({'service_record': service_record})
 return render_to_response('infrastructure/service_record_view', context, context_instance=RequestContext(request), response_format=response_format)

@ treeio_login_required @ handle_response_format def service_record_view ( request , service_record_id , response_format = 'html' ) : service_record = get_object_or_404 ( ItemServicing , pk = service_record_id ) if ( not request . user . profile . has_permission ( service_record ) ) : return user_denied ( request , message = "You don't have access to this ServiceRecord" , response_format = response_format ) context = _get_default_context ( request ) context . update ( { 'service_record' : service_record } ) return render_to_response ( 'infrastructure/service_record_view' , context , context_instance = RequestContext ( request ) , response_format = response_format )
servicerecord view .