Migration needed. Refactored the config.configValue model into server.ServerConfig (that's what the config model were used for anyway). The new model can handle arbitrary data structures through pickle. Run ./manage.py migrate to sync your database with the new setup.

Moved Connect screens (the text screen first seen when connecting) away from the database and into a module in gamesrc/world. This module allows for conveniently adding new connect screens on the fly. More than one screen in the given module will mean a random screen is used.
This commit is contained in:
Griatch 2011-04-12 21:43:57 +00:00
parent f1404356ea
commit 7f9f21f45e
21 changed files with 162 additions and 257 deletions

View file

@ -22,7 +22,7 @@ from django.conf import settings
from src.utils import create, ansi
from src.server import session, sessionhandler
from src.locks.lockhandler import LockHandler
from src.config.models import ConfigValue
from src.server.models import ServerConfig
#------------------------------------------------------------
# Command testing
@ -77,7 +77,7 @@ class CommandTest(TestCase):
"""
def setUp(self):
"sets up the testing environment"
c = ConfigValue(db_key="default_home", db_value="2")
c = ServerConfig.objects.conf("default_home", 2)
c.save()
self.room1 = create.create_object(settings.BASE_ROOM_TYPECLASS, key="room1")