Cleaned up the webclient and changed how it handles sessions and identifies with the server. Fixed some reported bugs caused by the changed layout of sessionhandler.

This commit is contained in:
Griatch 2010-12-11 13:37:26 +00:00
parent b1682f78c9
commit 0eb5d29560
16 changed files with 191 additions and 107 deletions

View file

@ -9,13 +9,15 @@ import os, datetime
import django, twisted
from django.contrib.auth.models import User
from src.server import sessionhandler
from src.server.server import EVENNIA
from src.server.sessionhandler import SESSIONS
from src.scripts.models import ScriptDB
from src.objects.models import ObjectDB
from src.config.models import ConfigValue
from src.utils import reloads, create, logger, utils, gametime
from src.commands.default.muxcommand import MuxCommand
class CmdReload(MuxCommand):
"""
Reload the system
@ -429,13 +431,9 @@ class CmdShutdown(MuxCommand):
announcement = "\nServer is being SHUT DOWN!\n"
if self.args:
announcement += "%s\n" % self.args
sessionhandler.announce_all(announcement)
logger.log_infomsg('Server shutdown by %s.' % self.caller.name)
# access server through session so we don't call server directly
# (importing it directly would restart it...)
session.server.shutdown()
SESSIONS.announce_all(announcement)
EVENNIA.shutdown()
class CmdVersion(MuxCommand):
"""