@handle_response_format
@treeio_login_required
def sla_index(request, response_format='html'):
 if request.GET:
  query = _get_filter_query(request.GET, ServiceLevelAgreement)
  slas = Object.filter_by_request(request, ServiceLevelAgreement.objects.filter(query))
 else:
  slas = Object.filter_by_request(request, ServiceLevelAgreement.objects)
 filters = SLAFilterForm(request.user.profile, '', request.GET)
 context = _get_default_context(request)
 context.update({'slas': slas, 'filters': filters})
 return render_to_response('services/sla_index', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required def sla_index ( request , response_format = 'html' ) : if request . GET : query = _get_filter_query ( request . GET , ServiceLevelAgreement ) slas = Object . filter_by_request ( request , ServiceLevelAgreement . objects . filter ( query ) ) else : slas = Object . filter_by_request ( request , ServiceLevelAgreement . objects ) filters = SLAFilterForm ( request . user . profile , '' , request . GET ) context = _get_default_context ( request ) context . update ( { 'slas' : slas , 'filters' : filters } ) return render_to_response ( 'services/sla_index' , context , context_instance = RequestContext ( request ) , response_format = response_format )
all available service level agreements .