summaryrefslogtreecommitdiffstats
path: root/askbot/conf/flatpages.py
blob: 9a705b5a642ef53d741c262715d4c00ad1b7698f (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
"""
Q&A forum flatpages (about, etc.)
"""
from askbot.conf.settings_wrapper import settings
from askbot.deps.livesettings import ConfigurationGroup, LongStringValue
from askbot.conf.super_groups import CONTENT_AND_UI
from django.utils.translation import ugettext_lazy as _

FLATPAGES = ConfigurationGroup(
                'FLATPAGES',
                _('Messages and pages - about, privacy policy, etc.'),
                super_group = CONTENT_AND_UI
            )

settings.register(
    LongStringValue(
        FLATPAGES,
        'FORUM_ABOUT',
        description=_('Text of the Q&A forum About page (html format)'),
        help_text=\
        _(
            'Save, then <a href="http://validator.w3.org/">'
            'use HTML validator</a> on the "about" page to check your input.'
        )
    )
)

settings.register(
    LongStringValue(
        FLATPAGES,
        'FORUM_FAQ',
        description=_('Text of the Q&A forum FAQ page (html format)'),
        help_text=\
        _(
            'Save, then <a href="http://validator.w3.org/">'
            'use HTML validator</a> on the "faq" page to check your input.'
        )
    )
)

settings.register(
    LongStringValue(
        FLATPAGES,
        'QUESTION_INSTRUCTIONS',
        description=_('Instructions on how to ask questions'),
        help_text=\
        _(
            'HTML is allowed. Save, then <a href="http://validator.w3.org/">'
            'use HTML validator</a> on the "ask" page to check your input.'
        )

    )
)

settings.register(
    LongStringValue(
        FLATPAGES,
        'FORUM_PRIVACY',
        description=_('Text of the Q&A forum Privacy Policy (html format)'),
        help_text=\
        _(
            'Save, then <a href="http://validator.w3.org/">'
            'use HTML validator</a> on the "privacy" page to check your input.'
        )
    )
)

#todo: merge this with mandatory tags
settings.register(#this field is not editable manually
    LongStringValue(
        FLATPAGES,
        'CATEGORY_TREE',
        description = 'Category tree',#no need to translate
        default = '[["dummy",[]]]',#empty array of arrays in json
        help_text=_('Do not edit this field manually!!!')
        #hidden = True
    )
)