@treeio_login_required
@handle_response_format
def location_view(request, location_id, response_format='html'):
 location = get_object_or_404(Location, pk=location_id)
 if (not request.user.profile.has_permission(location)):
  return user_denied(request, message="You don't have access to this Location", response_format=response_format)
 context = _get_default_context(request)
 context.update({'location': location})
 return render_to_response('identities/location_view', context, context_instance=RequestContext(request), response_format=response_format)

@ treeio_login_required @ handle_response_format def location_view ( request , location_id , response_format = 'html' ) : location = get_object_or_404 ( Location , pk = location_id ) if ( not request . user . profile . has_permission ( location ) ) : return user_denied ( request , message = "You don't have access to this Location" , response_format = response_format ) context = _get_default_context ( request ) context . update ( { 'location' : location } ) return render_to_response ( 'identities/location_view' , context , context_instance = RequestContext ( request ) , response_format = response_format )
location view .