@handle_response_format
@treeio_login_required
def agent_index(request, response_format='html'):
 if (not request.user.profile.is_admin('treeio.services')):
  return user_denied(request, message="You don't have administrator access to the Service Support module")
 if request.GET:
  query = _get_filter_query(request.GET, ServiceAgent)
  agents = Object.filter_by_request(request, ServiceAgent.objects.filter(query))
 else:
  agents = Object.filter_by_request(request, ServiceAgent.objects)
 filters = AgentFilterForm(request.user.profile, '', request.GET)
 context = _get_default_context(request)
 context.update({'agents': agents, 'filters': filters})
 return render_to_response('services/agent_index', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required def agent_index ( request , response_format = 'html' ) : if ( not request . user . profile . is_admin ( 'treeio.services' ) ) : return user_denied ( request , message = "You don't have administrator access to the Service Support module" ) if request . GET : query = _get_filter_query ( request . GET , ServiceAgent ) agents = Object . filter_by_request ( request , ServiceAgent . objects . filter ( query ) ) else : agents = Object . filter_by_request ( request , ServiceAgent . objects ) filters = AgentFilterForm ( request . user . profile , '' , request . GET ) context = _get_default_context ( request ) context . update ( { 'agents' : agents , 'filters' : filters } ) return render_to_response ( 'services/agent_index' , context , context_instance = RequestContext ( request ) , response_format = response_format )
all available agents .