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