#NEWLINE# @ login_required #NEWLINE# @ app . route ( '/group/<group_id>/events/<event_id>/' ) #NEWLINE# def group_event_details( group_id , event_id ) : #NEWLINE# #INDENT# group = get_object_or_404 ( Group , pk = group_id ) #NEWLINE# event = get_object_or_404 ( Event , pk = event_id ) #NEWLINE# def iter_data( obj ) : #NEWLINE# #INDENT# for ( k , v ) in obj . data [ 'extra' ] . iteritems ( ) : #NEWLINE# #INDENT# if ( k . startswith ( '_' ) or ( k in [ 'url' ] ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ( yield ( k , v ) ) #NEWLINE# #UNINDENT# #UNINDENT# return render_template ( 'sentry/group/event.html' , ** { #NEWLINE# #INDENT# 'page' : 'events' , #NEWLINE# 'json_data' : iter_data ( event ) , #NEWLINE# 'group' : group , #NEWLINE# 'event' : event , #NEWLINE# 'interface_list' : filter ( None , [ Markup ( ( i . to_html ( event ) or '' ) ) for i in event . get_interfaces ( ) ] ) , #NEWLINE# #UNINDENT# } )