@treeio_login_required
@handle_response_format
def location_index(request, location_id, response_format='html'):
 locations = Object.filter_permitted(request.user.profile, Location.objects)
 context = _get_default_context(request)
 context.update({'locations': locations})
 return render_to_response('identities/location_index', context, context_instance=RequestContext(request), response_format=response_format)

@ treeio_login_required @ handle_response_format def location_index ( request , location_id , response_format = 'html' ) : locations = Object . filter_permitted ( request . user . profile , Location . objects ) context = _get_default_context ( request ) context . update ( { 'locations' : locations } ) return render_to_response ( 'identities/location_index' , context , context_instance = RequestContext ( request ) , response_format = response_format )
location index .