예제 #1
0
def ticket_action(ticket_id,action):
	global emailGlobal
	ticket_action2(ticket_id,action)
	rt_summary.generate_summary_file()
	rt_summary.get_summary_info()
	statistics.stats_update_json_file()
	redirect("/detail/"+emailGlobal+"?o="+request.query.o)
예제 #2
0
def get_root():
	start_time = time()
	
	rt_summary.generate_summary_file()
	rt_summary.get_summary_info()
	statistics.stats_update_json_file()

	result = create_default_result()
	# Removed to be a display at the TV
	#if request.query.o == '' or not user_auth.check_id(request.query.o):
	#    result.update({'message': ''})
	#    return template('auth', result)
	#result.update({'username': user_auth.get_email_from_id(request.query.o)})
	result.update({'username_id': request.query.o})
	today = date.today().isoformat()
	result.update({'statistics': get_statistics(get_date(30, today), today)})

	# Is there any URGENT ticket?
	result.update({'urgent': get_urgent_tickets(rt_object)})

	result.update({'time_spent': '%0.2f seconds' % (time() - start_time)})
	
	return template('entrance_summary', result)