@treeio_login_required
@handle_response_format
def event_view(request, event_id, response_format='html'):
 event = get_object_or_404(Event, pk=event_id)
 if (not request.user.profile.has_permission(event)):
  return user_denied(request, message="You don't have access to this Event")
 return render_to_response('events/event_view', {'event': event}, context_instance=RequestContext(request), response_format=response_format)

@ treeio_login_required @ handle_response_format def event_view ( request , event_id , response_format = 'html' ) : event = get_object_or_404 ( Event , pk = event_id ) if ( not request . user . profile . has_permission ( event ) ) : return user_denied ( request , message = "You don't have access to this Event" ) return render_to_response ( 'events/event_view' , { 'event' : event } , context_instance = RequestContext ( request ) , response_format = response_format )
event view .