Lots of goodies in this one. More work on the default web front page, a few extra utility functions for functions_db as well. Some cleanup in the session code to use some of the new abstraction I added a while back. Player's last login time is now also set on the User object. Issue 28: Forward slashes causing crashes, found by Kuros, fixed by me.

This commit is contained in:
Greg Taylor 2007-06-06 13:38:13 +00:00
parent 270db06820
commit e2cc754441
7 changed files with 57 additions and 25 deletions

View file

@ -8,6 +8,7 @@ from django.contrib.auth.models import User
from django.utils import simplejson
from apps.news.models import NewsEntry
import functions_db
"""
This file contains the generic, assorted views that don't fall under one of
@ -23,6 +24,9 @@ def page_index(request):
pagevars = {
"page_title": "Front Page",
"news_entries": news_entries,
"players_connected": functions_db.num_connected_players(),
"players_registered": functions_db.num_total_players(),
"players_connected_recent": functions_db.num_recently_connected_players(),
}
context_instance = RequestContext(request)