]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/minrep.py
initial import
[osqa.git] / forum / settings / minrep.py
1 from base import Setting, SettingSet\r
2 from django.utils.translation import ugettext_lazy as _\r
3 \r
4 MIN_REP_SET = SettingSet('minrep', _('Minimum reputation config'), _("Configure the minimum reputation required to perform certain actions on your site."), 300)\r
5 \r
6 REP_TO_VOTE_UP = Setting('REP_TO_VOTE_UP', 15, MIN_REP_SET, dict(\r
7 label = _("Minimum reputation to vote up"),\r
8 help_text = _("""\r
9 The minimum reputation an user must have to be allowed to vote up.\r
10 """)))\r
11 \r
12 REP_TO_VOTE_DOWN = Setting('REP_TO_VOTE_DOWN', 100, MIN_REP_SET, dict(\r
13 label = _("Minimum reputation to vote down"),\r
14 help_text = _("""\r
15 The minimum reputation an user must have to be allowed to vote down.\r
16 """)))\r
17 \r
18 REP_TO_FLAG = Setting('REP_TO_FLAG', 15, MIN_REP_SET, dict(\r
19 label = _("Minimum reputation to flag a post"),\r
20 help_text = _("""\r
21 The minimum reputation an user must have to be allowed to flag a post.\r
22 """)))\r
23 \r
24 REP_TO_COMMENT = Setting('REP_TO_COMMENT', 50, MIN_REP_SET, dict(\r
25 label = _("Minimum reputation to comment"),\r
26 help_text = _("""\r
27 The minimum reputation an user must have to be allowed to comment a post.\r
28 """)))\r
29 \r
30 REP_TO_LIKE_COMMENT = Setting('REP_TO_LIKE_COMMENT', 15, MIN_REP_SET, dict(\r
31 label = _("Minimum reputation to like a comment"),\r
32 help_text = _("""\r
33 The minimum reputation an user must have to be allowed to "like" a comment.\r
34 """)))\r
35 \r
36 REP_TO_UPLOAD = Setting('REP_TO_UPLOAD', 60, MIN_REP_SET, dict(\r
37 label = _("Minimum reputation to upload"),\r
38 help_text = _("""\r
39 The minimum reputation an user must have to be allowed to upload a file.\r
40 """)))\r
41 \r
42 REP_TO_CLOSE_OWN = Setting('REP_TO_CLOSE_OWN', 250, MIN_REP_SET, dict(\r
43 label = _("Minimum reputation to close own question"),\r
44 help_text = _("""\r
45 The minimum reputation an user must have to be allowed to close his own question.\r
46 """)))\r
47 \r
48 REP_TO_REOPEN_OWN = Setting('REP_TO_REOPEN_OWN', 500, MIN_REP_SET, dict(\r
49 label = _("Minimum reputation to reopen own question"),\r
50 help_text = _("""\r
51 The minimum reputation an user must have to be allowed to reopen his own question.\r
52 """)))\r
53 \r
54 REP_TO_RETAG = Setting('REP_TO_RETAG', 500, MIN_REP_SET, dict(\r
55 label = _("Minimum reputation to retag others questions"),\r
56 help_text = _("""\r
57 The minimum reputation an user must have to be allowed to retag others questions.\r
58 """)))\r
59 \r
60 REP_TO_EDIT_WIKI = Setting('REP_TO_EDIT_WIKI', 750, MIN_REP_SET, dict(\r
61 label = _("Minimum reputation to edit wiki posts"),\r
62 help_text = _("""\r
63 The minimum reputation an user must have to be allowed to edit community wiki posts.\r
64 """)))\r
65 \r
66 REP_TO_EDIT_OTHERS = Setting('REP_TO_EDIT_OTHERS', 2000, MIN_REP_SET, dict(\r
67 label = _("Minimum reputation to edit others posts"),\r
68 help_text = _("""\r
69 The minimum reputation an user must have to be allowed to edit others posts.\r
70 """)))\r
71 \r
72 REP_TO_CLOSE_OTHERS = Setting('REP_TO_CLOSE_OTHERS', 3000, MIN_REP_SET, dict(\r
73 label = _("Minimum reputation to close others posts"),\r
74 help_text = _("""\r
75 The minimum reputation an user must have to be allowed to close others posts.\r
76 """)))\r
77 \r
78 REP_TO_DELETE_COMMENTS = Setting('REP_TO_DELETE_COMMENTS', 2000, MIN_REP_SET, dict(\r
79 label = _("Minimum reputation to delete comments"),\r
80 help_text = _("""\r
81 The minimum reputation an user must have to be allowed to delete comments.\r
82 """)))\r
83 \r
84 REP_TO_VIEW_FLAGS = Setting('REP_TO_VIEW_FLAGS', 2000, MIN_REP_SET, dict(\r
85 label = _("Minimum reputation to view offensive flags"),\r
86 help_text = _("""\r
87 The minimum reputation an user must have to view offensive flags.\r
88 """)))\r
89 \r
90 #REP_TO_DISABLE_NOFOLLOW = Setting('REP_TO_DISABLE_NOFOLLOW', 2000, MIN_REP_SET, dict(\r
91 #label = _("Minimum reputation to disable nofollow"),\r
92 #help_text = _("""\r
93 #The minimum reputation an user must have to be allowed to disable the nofollow attribute of a post link.\r
94 #""")))