summaryrefslogtreecommitdiffstats
path: root/forum/conf/skin_general_settings.py
blob: 3c74a593dfddd3bc0fa89bdbc363194ecacf15b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
General skin settings
"""
from forum.conf.settings_wrapper import settings
from forum.deps.livesettings import ConfigurationGroup, StringValue, IntegerValue
from django.utils.translation import ugettext as _
from forum.skins.utils import get_skin_choices

GENERAL_SKIN_SETTINGS = ConfigurationGroup(
                    'GENERAL_SKIN_SETTINGS',
                    _('Skin: general settings'),
                )

settings.register(
    StringValue(
        GENERAL_SKIN_SETTINGS,
        'ASKBOT_DEFAULT_SKIN',
        default='default',
        choices=get_skin_choices(),
        description=_('Select skin'),
    )
)

settings.register(
    IntegerValue(
        GENERAL_SKIN_SETTINGS,
        'MEDIA_RESOURCE_REVISION',
        default=1,
        description=_('Skin media revision number'),
        help_text=_(
                    'Increment this number when you change '
                    'image in skin media or stylesheet. '
                    'This helps avoid showing your users '
                    'outdated images from their browser cache.'
                    )
    )
)