def eventlog(request, event=0):
 if (not test_user_authenticated(request)):
  return login(request, next=('/cobbler_web/eventlog/%s' % str(event)), expired=True)
 event_info = remote.get_events()
 if (event not in event_info):
  return HttpResponse('event not found')
 data = event_info[event]
 eventname = data[0]
 eventtime = data[1]
 eventstate = data[2]
 eventlog = remote.get_event_log(event)
 t = get_template('eventlog.tmpl')
 vars = {'eventlog': eventlog, 'eventname': eventname, 'eventstate': eventstate, 'eventid': event, 'eventtime': eventtime, 'version': remote.extended_version(request.session['token'])['version'], 'username': username}
 html = t.render(RequestContext(request, vars))
 return HttpResponse(html)

def eventlog ( request , event = 0 ) : if ( not test_user_authenticated ( request ) ) : return login ( request , next = ( '/cobbler_web/eventlog/%s' % str ( event ) ) , expired = True ) event_info = remote . get_events ( ) if ( event not in event_info ) : return HttpResponse ( 'event not found' ) data = event_info [ event ] eventname = data [ 0 ] eventtime = data [ 1 ] eventstate = data [ 2 ] eventlog = remote . get_event_log ( event ) t = get_template ( 'eventlog.tmpl' ) vars = { 'eventlog' : eventlog , 'eventname' : eventname , 'eventstate' : eventstate , 'eventid' : event , 'eventtime' : eventtime , 'version' : remote . extended_version ( request . session [ 'token' ] ) [ 'version' ] , 'username' : username } html = t . render ( RequestContext ( request , vars ) ) return HttpResponse ( html )
shows the log for a given event .