Removing mixins.py, as it's not in use. We now have a separate ConnectScreen model under the config app to store connect screens. ConfigValue's value fields are now CharFields instead of TextFields for the sake of efficiency and sanity. It is strongly recommended that you reset your config app and syncdb to load the fixture.

This commit is contained in:
Greg Taylor 2008-06-14 03:15:41 +00:00
parent f1760e6521
commit ffe9a563e0
5 changed files with 37 additions and 27 deletions

View file

@ -4,9 +4,11 @@ import cPickle as pickle
from twisted.conch.telnet import StatefulTelnetProtocol
import cmdhandler
from apps.objects.models import Object
from django.contrib.auth.models import User
from apps.objects.models import Object
from apps.config.models import ConnectScreen
import cmdhandler
import functions_db
import functions_general
import session_mgr
@ -121,7 +123,8 @@ class SessionProtocol(StatefulTelnetProtocol):
"""
Show the banner screen. Grab from the 'connect_screen' config directive.
"""
buffer = ansi.parse_ansi(gameconf.get_configvalue('connect_screen'))
screen = ConnectScreen.objects.get_random_connect_screen()
buffer = ansi.parse_ansi(screen.connect_screen_text)
self.msg(buffer)
def is_loggedin(self):