]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/minrep.py
b2ff60d172df6a9416979de875f15611d4062239
[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 = _("The minimum reputation an user must have to be allowed to vote up.")))\r
9 \r
10 REP_TO_VOTE_DOWN = Setting('REP_TO_VOTE_DOWN', 100, MIN_REP_SET, dict(\r
11 label = _("Minimum reputation to vote down"),\r
12 help_text = _("The minimum reputation an user must have to be allowed to vote down.")))\r
13 \r
14 REP_TO_FLAG = Setting('REP_TO_FLAG', 15, MIN_REP_SET, dict(\r
15 label = _("Minimum reputation to flag a post"),\r
16 help_text = _("The minimum reputation an user must have to be allowed to flag a post.")))\r
17 \r
18 REP_TO_COMMENT = Setting('REP_TO_COMMENT', 50, MIN_REP_SET, dict(\r
19 label = _("Minimum reputation to comment"),\r
20 help_text = _("The minimum reputation an user must have to be allowed to comment a post.")))\r
21 \r
22 REP_TO_LIKE_COMMENT = Setting('REP_TO_LIKE_COMMENT', 15, MIN_REP_SET, dict(\r
23 label = _("Minimum reputation to like a comment"),\r
24 help_text = _("The minimum reputation an user must have to be allowed to \"like\" a comment.")))\r
25 \r
26 REP_TO_UPLOAD = Setting('REP_TO_UPLOAD', 60, MIN_REP_SET, dict(\r
27 label = _("Minimum reputation to upload"),\r
28 help_text = _("The minimum reputation an user must have to be allowed to upload a file.")))\r
29 \r
30 REP_TO_CREATE_TAGS = Setting('REP_TO_CREATE_TAGS', 250, MIN_REP_SET, dict(\r
31 label = _("Minimum reputation to create tags"),\r
32 help_text = _("The minimum reputation an user must have to be allowed to create new tags.")))\r
33 \r
34 REP_TO_CLOSE_OWN = Setting('REP_TO_CLOSE_OWN', 250, MIN_REP_SET, dict(\r
35 label = _("Minimum reputation to close own question"),\r
36 help_text = _("The minimum reputation an user must have to be allowed to close his own question.")))\r
37 \r
38 REP_TO_REOPEN_OWN = Setting('REP_TO_REOPEN_OWN', 500, MIN_REP_SET, dict(\r
39 label = _("Minimum reputation to reopen own question"),\r
40 help_text = _("The minimum reputation an user must have to be allowed to reopen his own question.")))\r
41 \r
42 REP_TO_RETAG = Setting('REP_TO_RETAG', 500, MIN_REP_SET, dict(\r
43 label = _("Minimum reputation to retag others questions"),\r
44 help_text = _("The minimum reputation an user must have to be allowed to retag others questions.")))\r
45 \r
46 REP_TO_EDIT_WIKI = Setting('REP_TO_EDIT_WIKI', 750, MIN_REP_SET, dict(\r
47 label = _("Minimum reputation to edit wiki posts"),\r
48 help_text = _("The minimum reputation an user must have to be allowed to edit community wiki posts.")))\r
49 \r
50 REP_TO_WIKIFY = Setting('REP_TO_WIKIFY', 2000, MIN_REP_SET, dict(\r
51 label = _("Minimum reputation to mark post as community wiki"),\r
52 help_text = _("The minimum reputation an user must have to be allowed to mark a post as community wiki.")))\r
53 \r
54 REP_TO_EDIT_OTHERS = Setting('REP_TO_EDIT_OTHERS', 2000, MIN_REP_SET, dict(\r
55 label = _("Minimum reputation to edit others posts"),\r
56 help_text = _("The minimum reputation an user must have to be allowed to edit others posts.")))\r
57 \r
58 REP_TO_CLOSE_OTHERS = Setting('REP_TO_CLOSE_OTHERS', 3000, MIN_REP_SET, dict(\r
59 label = _("Minimum reputation to close others posts"),\r
60 help_text = _("The minimum reputation an user must have to be allowed to close others posts.")))\r
61 \r
62 REP_TO_DELETE_COMMENTS = Setting('REP_TO_DELETE_COMMENTS', 2000, MIN_REP_SET, dict(\r
63 label = _("Minimum reputation to delete comments"),\r
64 help_text = _("The minimum reputation an user must have to be allowed to delete comments.")))\r
65 \r
66 REP_TO_CONVERT_TO_COMMENT = Setting('REP_TO_CONVERT_TO_COMMENT', 2000, MIN_REP_SET, dict(\r
67 label = _("Minimum reputation to convert answers to comment"),\r
68 help_text = _("The minimum reputation an user must have to be allowed to convert an answer into a comment.")))\r
69 \r
70 REP_TO_CONVERT_COMMENTS_TO_ANSWERS = Setting('REP_TO_CONVERT_COMMENTS_TO_ANSWERS', 2000, MIN_REP_SET, dict(\r
71 label = _("Minimum reputation to convert comments to answers"),\r
72 help_text = _("The minimum reputation an user must have to be allowed to convert comments into an answer.")))\r
73 \r
74 REP_TO_CONVERT_TO_QUESTION = Setting('REP_TO_CONVERT_TO_QUESTION', 2000, MIN_REP_SET, dict(\r
75 label = _("Minimum reputation to convert answers to questions"),\r
76 help_text = _("The minimum reputation an user must have to be allowed to convert an answer into a question.")))\r
77 \r
78 REP_TO_VIEW_FLAGS = Setting('REP_TO_VIEW_FLAGS', 2000, MIN_REP_SET, dict(\r
79 label = _("Minimum reputation to view offensive flags"),\r
80 help_text = _("The minimum reputation an user must have to view offensive flags.")))\r
81 \r
82 #REP_TO_DISABLE_NOFOLLOW = Setting('REP_TO_DISABLE_NOFOLLOW', 2000, MIN_REP_SET, dict(\r
83 #label = _("Minimum reputation to disable nofollow"),\r
84 #help_text = _("""\r
85 #The minimum reputation an user must have to be allowed to disable the nofollow attribute of a post link.\r
86 #""")))\r