Convert all apps to use the new class based settings

This commit is contained in:
Roberto Rosario
2012-03-06 16:08:28 -04:00
parent 11a9d87701
commit c9dcda3a5c
15 changed files with 476 additions and 203 deletions

View File

@@ -1,14 +1,30 @@
"""Configuration options for the web_theme app"""
from django.utils.translation import ugettext_lazy as _
from smart_settings.api import register_settings
from smart_settings.api import Setting, SettingNamespace
register_settings(
namespace=u'web_theme',
module=u'web_theme.conf.settings',
settings=[
{'name': u'THEME', 'global_name': u'WEB_THEME_THEME', 'default': u'activo', 'description': _(u'CSS theme to apply, options are: amro, bec, bec-green, blue, default, djime-cerulean, drastic-dark, kathleene, olive, orange, red, reidb-greenish and warehouse.')},
{'name': u'ENABLE_SCROLL_JS', 'global_name': u'WEB_THEME_ENABLE_SCROLL_JS', 'default': True, 'hidden': True},
{'name': u'VERBOSE_LOGIN', 'global_name': u'WEB_THEME_VERBOSE_LOGIN', 'default': True, 'description': _(u'Display extra information in the login screen.')},
]
namespace = SettingNamespace('web_theme', _(u'Interface'), module='web_theme.conf.settings')
Setting(
namespace=namespace,
name='THEME',
global_name='WEB_THEME_THEME',
default=u'activo',
description=_(u'CSS theme to apply, options are: amro, bec, bec-green, blue, default, djime-cerulean, drastic-dark, kathleene, olive, orange, red, reidb-greenish and warehouse.')
)
Setting(
namespace=namespace,
name='ENABLE_SCROLL_JS',
global_name='WEB_THEME_ENABLE_SCROLL_JS',
default=True,
hidden=True
)
Setting(
namespace=namespace,
name='VERBOSE_LOGIN',
global_name='WEB_THEME_VERBOSE_LOGIN',
default=True,
description=_(u'Display extra information in the login screen.')
)