Re-organization.

This commit is contained in:
Greg Taylor 2007-04-03 13:42:51 +00:00
parent 5db3ae2933
commit 5421ab7f6e
38 changed files with 0 additions and 0 deletions

0
apps/config/__init__.py Executable file
View file

26
apps/config/models.py Executable file
View file

@ -0,0 +1,26 @@
from django.db import models
class CommandAlias(models.Model):
"""
Command aliases. If the player enters the value equal to user_input, the
command denoted by equiv_command is used instead.
"""
user_input = models.CharField(maxlength=50)
equiv_command = models.CharField(maxlength=50)
class Admin:
list_display = ('user_input', 'equiv_command',)
class Meta:
verbose_name_plural = "Command aliases"
ordering = ['user_input']
class ConfigValue(models.Model):
"""
Experimental new config model.
"""
conf_key = models.CharField(maxlength=100)
conf_value = models.CharField(maxlength=255 )
class Admin:
list_display = ('conf_key', 'conf_value',)

1
apps/config/views.py Executable file
View file

@ -0,0 +1 @@
# Create your views here.