@handle_response_format
@treeio_login_required
def service_view(request, service_id, response_format='html'):
 service = get_object_or_404(Service, pk=service_id)
 if ((not request.user.profile.has_permission(service)) and (not request.user.profile.is_admin('treeio_services'))):
  return user_denied(request, message="You don't have access to this Service")
 context = _get_default_context(request)
 context.update({'service': service})
 return render_to_response('services/service_view', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required def service_view ( request , service_id , response_format = 'html' ) : service = get_object_or_404 ( Service , pk = service_id ) if ( ( not request . user . profile . has_permission ( service ) ) and ( not request . user . profile . is_admin ( 'treeio_services' ) ) ) : return user_denied ( request , message = "You don't have access to this Service" ) context = _get_default_context ( request ) context . update ( { 'service' : service } ) return render_to_response ( 'services/service_view' , context , context_instance = RequestContext ( request ) , response_format = response_format )
service view .