]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/repgain.py
Fix in query cache
[osqa.git] / forum / settings / repgain.py
1 from base import Setting, SettingSet\r
2 from django.utils.translation import ugettext_lazy as _\r
3 \r
4 REP_GAIN_SET = SettingSet('repgain', _('Reputation gains and losses config'), _("Configure the reputation points a user may gain or lose upon certain actions."), 200)\r
5 \r
6 INITIAL_REP = Setting('INITIAL_REP', 1, REP_GAIN_SET, dict(\r
7 label = _("Initial reputation"),\r
8 help_text = _("The initial reputation an user gets when he first signs in.")))\r
9 \r
10 MAX_REP_BY_UPVOTE_DAY = Setting('MAX_REP_BY_UPVOTE_DAY', 200, REP_GAIN_SET, dict(\r
11 label = "Max rep by up votes / day",\r
12 help_text = _("Maximum reputation a user can gain in one day for being upvoted.")))\r
13 \r
14 REP_GAIN_BY_EMAIL_VALIDATION = Setting('REP_GAIN_BY_EMAIL_VALIDATION', 10, REP_GAIN_SET, dict(\r
15 label = _("Rep gain by e-mail validation"),\r
16 help_text = _("Reputation a user gains for validating his e-mail.")))\r
17 \r
18 REP_GAIN_BY_UPVOTED = Setting('REP_GAIN_BY_UPVOTED', 10, REP_GAIN_SET, dict(\r
19 label = _("Rep gain by upvoted"),\r
20 help_text = _("Reputation a user gains for having one of his posts up voted.")))\r
21 \r
22 REP_LOST_BY_DOWNVOTED = Setting('REP_LOST_BY_DOWNVOTED', 2, REP_GAIN_SET, dict(\r
23 label = _("Rep lost by downvoted"),\r
24 help_text = _("Reputation a user loses for having one of his posts down voted.")))\r
25 \r
26 REP_LOST_BY_DOWNVOTING = Setting('REP_LOST_BY_DOWNVOTING', 1, REP_GAIN_SET, dict(\r
27 label = _("Rep lost by downvoting"),\r
28 help_text = _("Reputation a user loses for down voting a post.")))\r
29 \r
30 \r
31 REP_GAIN_BY_ACCEPTED = Setting('REP_GAIN_BY_ACCEPTED', 15, REP_GAIN_SET, dict(\r
32 label = _("Rep gain by accepted answer"),\r
33 help_text = _("Reputation a user gains for having one of his answers accepted.")))\r
34 \r
35 REP_GAIN_BY_ACCEPTING = Setting('REP_GAIN_BY_ACCEPTING', 2, REP_GAIN_SET, dict(\r
36 label = _("Rep gain by accepting answer"),\r
37 help_text = _("Reputation a user gains for accepting an answer to one of his questions.")))\r
38 \r
39 REP_LOST_BY_FLAGGED = Setting('REP_LOST_BY_FLAGGED', 2, REP_GAIN_SET, dict(\r
40 label = _("Rep lost by post flagged"),\r
41 help_text = _("Reputation a user loses by having one of his posts flagged.")))\r
42 \r
43 REP_LOST_BY_FLAGGED_3_TIMES = Setting('REP_LOST_BY_FLAGGED_3_TIMES', 30, REP_GAIN_SET, dict(\r
44 label = _("Rep lost by post flagged and hidden"),\r
45 help_text = _("Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to hide the post.")))\r
46 \r
47 REP_LOST_BY_FLAGGED_5_TIMES = Setting('REP_LOST_BY_FLAGGED_5_TIMES', 100, REP_GAIN_SET, dict(\r
48 label = _("Rep lost by post flagged and deleted"),\r
49 help_text = _("Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to delete the post.")))