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

@ -32,7 +32,6 @@ from src.players.models import PlayerDB
from src.scripts.models import ScriptDB
from src.comms.models import Msg, Channel
from src.help.models import HelpEntry
from src.config.models import ConfigValue
#
# Search objects as a character
@ -134,19 +133,3 @@ channels = Channel.objects.channel_search
# """
helpentries = HelpEntry.objects.search_help
#
# Get a configuration value
#
# OBS - this returns a unique value (or None),
# not a list!
#
# def config_search(self, ostring):
# """
# Retrieve a configuration value.
# ostring - a (unique) configuration key
# """
configvalue = ConfigValue.objects.config_search