1 from base import Setting, SettingSet
\r
2 from django.utils.translation import ugettext_lazy as _
\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
6 INITIAL_REP = Setting('INITIAL_REP', 1, REP_GAIN_SET, dict(
\r
7 label = _("Initial reputation"),
\r
9 The initial reputation an user gets when he first signs in.
\r
12 MAX_REP_BY_UPVOTE_DAY = Setting('MAX_REP_BY_UPVOTE_DAY', 200, REP_GAIN_SET, dict(
\r
13 label = "Max rep by up votes / day",
\r
15 Maximum reputation a user can gain in one day for being upvoted.
\r
18 REP_GAIN_BY_UPVOTED = Setting('REP_GAIN_BY_UPVOTED', 10, REP_GAIN_SET, dict(
\r
19 label = _("Rep gain by upvoted"),
\r
21 Reputation a user gains for having one of his posts up voted.
\r
24 REP_LOST_BY_UPVOTE_CANCELED = Setting('REP_LOST_BY_UPVOTE_CANCELED', 10, REP_GAIN_SET, dict(
\r
25 label = _("Rep lost bu upvote canceled"),
\r
27 Reputation a user loses for having one of the upvotes on his posts canceled.
\r
30 REP_LOST_BY_DOWNVOTED = Setting('REP_LOST_BY_DOWNVOTED', 2, REP_GAIN_SET, dict(
\r
31 label = _("Rep lost by downvoted"),
\r
33 Reputation a user loses for having one of his posts down voted.
\r
36 REP_LOST_BY_DOWNVOTING = Setting('REP_LOST_BY_DOWNVOTING', 1, REP_GAIN_SET, dict(
\r
37 label = _("Rep lost by downvoting"),
\r
39 Reputation a user loses for down voting a post.
\r
42 REP_GAIN_BY_DOWNVOTE_CANCELED = Setting('REP_GAIN_BY_DOWNVOTE_CANCELED', 2, REP_GAIN_SET, dict(
\r
43 label = _("Rep gain by downvote canceled"),
\r
45 Reputation a user gains for having one of the downvotes on his posts canceled.
\r
48 REP_GAIN_BY_CANCELING_DOWNVOTE = Setting('REP_GAIN_BY_CANCELING_DOWNVOTE', 1, REP_GAIN_SET, dict(
\r
49 label = _("Rep gain by canceling downvote"),
\r
51 Reputation a user gains for canceling a downvote.
\r
54 REP_GAIN_BY_ACCEPTED = Setting('REP_GAIN_BY_ACCEPTED', 15, REP_GAIN_SET, dict(
\r
55 label = _("Rep gain by accepted answer"),
\r
57 Reputation a user gains for having one of his answers accepted.
\r
60 REP_LOST_BY_ACCEPTED_CANCELED = Setting('REP_LOST_BY_ACCEPTED_CANCELED', 15, REP_GAIN_SET, dict(
\r
61 label = _("Rep lost by accepted canceled"),
\r
63 Reputation a user loses for having one of his accepted answers canceled.
\r
66 REP_GAIN_BY_ACCEPTING = Setting('REP_GAIN_BY_ACCEPTING', 2, REP_GAIN_SET, dict(
\r
67 label = _("Rep gain by accepting answer"),
\r
69 Reputation a user gains for accepting an answer to one of his questions.
\r
72 REP_LOST_BY_CANCELING_ACCEPTED = Setting('REP_LOST_BY_CANCELING_ACCEPTED', 2, REP_GAIN_SET, dict(
\r
73 label = _("Rep lost by canceling accepted"),
\r
75 Reputation a user loses by canceling an accepted answer.
\r
78 REP_LOST_BY_FLAGGED = Setting('REP_LOST_BY_FLAGGED', 2, REP_GAIN_SET, dict(
\r
79 label = _("Rep lost by post flagged"),
\r
81 Reputation a user loses by having one of his posts flagged.
\r
84 REP_LOST_BY_FLAGGED_3_TIMES = Setting('REP_LOST_BY_FLAGGED_3_TIMES', 30, REP_GAIN_SET, dict(
\r
85 label = _("Rep lost by post flagged and hidden"),
\r
87 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
90 REP_LOST_BY_FLAGGED_5_TIMES = Setting('REP_LOST_BY_FLAGGED_5_TIMES', 100, REP_GAIN_SET, dict(
\r
91 label = _("Rep lost by post flagged and deleted"),
\r
93 Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to delete the post.
\r