The first of many re-arrangements. Eliminated gameconf in favor of using the manager on ConfigValue. Moved some commands while I was at it. There are going to be crash bugs that need to be found and worked out.

This commit is contained in:
Greg Taylor 2008-06-15 17:21:02 +00:00
parent 8a1204ce76
commit d620f3b1f0
17 changed files with 216 additions and 200 deletions

View file

@ -1,6 +1,6 @@
from django.contrib.auth.models import User, Group
from apps.objects.models import Object
import gameconf
from apps.config.models import ConfigValue
def handle_setup():
# Set the initial user's username on the #1 object.
@ -15,4 +15,4 @@ def handle_setup():
newgroup.save()
# We don't want to do initial setup tasks every startup, only the first.
gameconf.set_configvalue('game_firstrun', '0')
ConfigValue.objects.set_configvalue('game_firstrun', '0')