From 760cee24ab84483b48c3a3565857edd1f9a48b73 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Thu, 7 Jun 2012 21:35:56 -0400 Subject: swapped default setting values with the bootstrap mode and renamed bootstrap mode to "large site mode" --- askbot/conf/badges.py | 10 +++--- askbot/conf/minimum_reputation.py | 38 +++++++++++------------ askbot/conf/site_modes.py | 64 +++++++++++++++++++-------------------- askbot/conf/vote_rules.py | 4 +-- 4 files changed, 58 insertions(+), 58 deletions(-) diff --git a/askbot/conf/badges.py b/askbot/conf/badges.py index 53292b05..ac510055 100644 --- a/askbot/conf/badges.py +++ b/askbot/conf/badges.py @@ -100,7 +100,7 @@ settings.register( IntegerValue( BADGES, 'POPULAR_QUESTION_BADGE_MIN_VIEWS', - default=150, + default=15, description=_('Popular Question: minimum views') ) ) @@ -109,7 +109,7 @@ settings.register( IntegerValue( BADGES, 'NOTABLE_QUESTION_BADGE_MIN_VIEWS', - default=250, + default=25, description=_('Notable Question: minimum views') ) ) @@ -118,7 +118,7 @@ settings.register( IntegerValue( BADGES, 'FAMOUS_QUESTION_BADGE_MIN_VIEWS', - default=500, + default=50, description=_('Famous Question: minimum views') ) ) @@ -217,7 +217,7 @@ settings.register( IntegerValue( BADGES, 'TAXONOMIST_BADGE_MIN_USE_COUNT', - default = 10, + default = 5, description = _('Taxonomist: minimum tag use count') ) ) @@ -226,7 +226,7 @@ settings.register( IntegerValue( BADGES, 'ENTHUSIAST_BADGE_MIN_DAYS', - default = 30, + default = 5, description = _('Enthusiast: minimum days') ) ) diff --git a/askbot/conf/minimum_reputation.py b/askbot/conf/minimum_reputation.py index 06f210f2..54ba0f65 100644 --- a/askbot/conf/minimum_reputation.py +++ b/askbot/conf/minimum_reputation.py @@ -18,7 +18,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_VOTE_UP', - default=15, + default=5, description=_('Upvote') ) ) @@ -27,7 +27,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_VOTE_DOWN', - default=100, + default=50, description=_('Downvote') ) ) @@ -36,7 +36,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_ANSWER_OWN_QUESTION', - default=25, + default=5, description=_('Answer own question immediately') ) ) @@ -45,7 +45,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_ACCEPT_OWN_ANSWER', - default=50, + default=20, description=_('Accept own answer') ) ) @@ -54,7 +54,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_FLAG_OFFENSIVE', - default=15, + default=5, description=_('Flag offensive') ) ) @@ -63,7 +63,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_LEAVE_COMMENTS', - default=50, + default=10, description=_('Leave comments') ) ) @@ -72,7 +72,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_DELETE_OTHERS_COMMENTS', - default=2000, + default=200, description=_('Delete comments posted by others') ) ) @@ -81,7 +81,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_DELETE_OTHERS_POSTS', - default=5000, + default=500, description=_('Delete questions and answers posted by others') ) ) @@ -90,7 +90,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_UPLOAD_FILES', - default=60, + default=10, description=_('Upload files') ) ) @@ -99,7 +99,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_CLOSE_OWN_QUESTIONS', - default=250, + default=25, description=_('Close own questions'), ) ) @@ -108,7 +108,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_RETAG_OTHERS_QUESTIONS', - default=500, + default=50, description=_('Retag questions posted by other people') ) ) @@ -117,7 +117,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_REOPEN_OWN_QUESTIONS', - default=500, + default=50, description=_('Reopen own questions') ) ) @@ -126,7 +126,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_EDIT_WIKI', - default=750, + default=75, description=_('Edit community wiki posts') ) ) @@ -135,7 +135,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_EDIT_OTHERS_POSTS', - default=2000, + default=200, description=_('Edit posts authored by other people') ) ) @@ -144,7 +144,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_VIEW_OFFENSIVE_FLAGS', - default=2000, + default=200, description=_('View offensive flags') ) ) @@ -153,7 +153,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_CLOSE_OTHERS_QUESTIONS', - default=2000, + default=200, description=_('Close questions asked by others') ) ) @@ -162,7 +162,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_LOCK_POSTS', - default=4000, + default=400, description=_('Lock posts') ) ) @@ -171,7 +171,7 @@ settings.register( livesettings.IntegerValue( MIN_REP, 'MIN_REP_TO_HAVE_STRONG_URL', - default=250, + default=25, description=_('Remove rel=nofollow from own homepage'), help_text=_( 'When a search engine crawler will see a rel=nofollow ' @@ -189,4 +189,4 @@ settings.register( default=100, description=_('Post answers and comments by email') ) -) \ No newline at end of file +) diff --git a/askbot/conf/site_modes.py b/askbot/conf/site_modes.py index efbbcca0..8ed86f12 100644 --- a/askbot/conf/site_modes.py +++ b/askbot/conf/site_modes.py @@ -9,35 +9,35 @@ from askbot.conf.super_groups import REP_AND_BADGES from askbot.deps.livesettings import ConfigurationGroup, BooleanValue from django.utils.translation import ugettext as _ -BOOTSTRAP_MODE_SETTINGS = { +LARGE_SITE_MODE_SETTINGS = { #minimum reputation settins. - 'MIN_REP_TO_VOTE_UP': 5, - 'MIN_REP_TO_VOTE_DOWN': 50, - 'MIN_REP_TO_ANSWER_OWN_QUESTION': 5, - 'MIN_REP_TO_ACCEPT_OWN_ANSWER': 20, - 'MIN_REP_TO_FLAG_OFFENSIVE': 5, - 'MIN_REP_TO_LEAVE_COMMENTS': 10, - 'MIN_REP_TO_DELETE_OTHERS_COMMENTS': 200, - 'MIN_REP_TO_DELETE_OTHERS_POSTS': 500, - 'MIN_REP_TO_UPLOAD_FILES': 10, - 'MIN_REP_TO_CLOSE_OWN_QUESTIONS': 25, - 'MIN_REP_TO_RETAG_OTHERS_QUESTIONS': 50, - 'MIN_REP_TO_REOPEN_OWN_QUESTIONS': 50, - 'MIN_REP_TO_EDIT_WIKI': 75, - 'MIN_REP_TO_EDIT_OTHERS_POSTS': 200, - 'MIN_REP_TO_VIEW_OFFENSIVE_FLAGS': 200, - 'MIN_REP_TO_CLOSE_OTHERS_QUESTIONS': 200, - 'MIN_REP_TO_LOCK_POSTS': 400, - 'MIN_REP_TO_HAVE_STRONG_URL': 25, + 'MIN_REP_TO_VOTE_UP': 15, + 'MIN_REP_TO_VOTE_DOWN': 100, + 'MIN_REP_TO_ANSWER_OWN_QUESTION': 25, + 'MIN_REP_TO_ACCEPT_OWN_ANSWER': 50, + 'MIN_REP_TO_FLAG_OFFENSIVE': 15, + 'MIN_REP_TO_LEAVE_COMMENTS': 50, + 'MIN_REP_TO_DELETE_OTHERS_COMMENTS': 2000, + 'MIN_REP_TO_DELETE_OTHERS_POSTS': 5000, + 'MIN_REP_TO_UPLOAD_FILES': 60, + 'MIN_REP_TO_CLOSE_OWN_QUESTIONS': 250, + 'MIN_REP_TO_RETAG_OTHERS_QUESTIONS': 500, + 'MIN_REP_TO_REOPEN_OWN_QUESTIONS': 500, + 'MIN_REP_TO_EDIT_WIKI': 750, + 'MIN_REP_TO_EDIT_OTHERS_POSTS': 2000, + 'MIN_REP_TO_VIEW_OFFENSIVE_FLAGS': 2000, + 'MIN_REP_TO_CLOSE_OTHERS_QUESTIONS': 2000, + 'MIN_REP_TO_LOCK_POSTS': 4000, + 'MIN_REP_TO_HAVE_STRONG_URL': 250, #badge settings - 'NOTABLE_QUESTION_BADGE_MIN_VIEWS': 25, - 'POPULAR_QUESTION_BADGE_MIN_VIEWS': 15, - 'FAMOUS_QUESTION_BADGE_MIN_VIEWS': 50, - 'ENTHUSIAST_BADGE_MIN_DAYS': 5, - 'TAXONOMIST_BADGE_MIN_USE_COUNT': 5, + 'NOTABLE_QUESTION_BADGE_MIN_VIEWS': 250, + 'POPULAR_QUESTION_BADGE_MIN_VIEWS': 150, + 'FAMOUS_QUESTION_BADGE_MIN_VIEWS': 500, + 'ENTHUSIAST_BADGE_MIN_DAYS': 30, + 'TAXONOMIST_BADGE_MIN_USE_COUNT': 10, #moderation rule settings - 'MIN_FLAGS_TO_HIDE_POST': 2, - 'MIN_FLAGS_TO_DELETE_POST': 3, + 'MIN_FLAGS_TO_HIDE_POST': 3, + 'MIN_FLAGS_TO_DELETE_POST': 5, } def bootstrap_callback(current_value, new_value): @@ -49,11 +49,11 @@ def bootstrap_callback(current_value, new_value): return new_value if new_value == True: - for key, value in BOOTSTRAP_MODE_SETTINGS.items(): + for key, value in LARGE_SITE_MODE_SETTINGS.items(): settings.update(key, value) else: - for key in BOOTSTRAP_MODE_SETTINGS: + for key in LARGE_SITE_MODE_SETTINGS: settings.reset(key) return new_value @@ -68,14 +68,14 @@ SITE_MODES = ConfigurationGroup( settings.register( BooleanValue( SITE_MODES, - 'ACTIVATE_BOOTSTRAP_MODE', + 'ACTIVATE_LARGE_SITE_MODE', default=False, description=_( - 'Activate a "Bootstrap" mode'), + 'Activate a "Large site" mode'), help_text=_( - "Bootstrap mode lowers reputation and certain badge " + "\"Large site\" mode increases reputation and certain badge " "thresholds, to values, more suitable " - "for the smaller communities, " + "for the larger communities, " "WARNING: your current values for " "Minimum reputation, " "Badge Settings and " diff --git a/askbot/conf/vote_rules.py b/askbot/conf/vote_rules.py index 82c9b758..7bafe32f 100644 --- a/askbot/conf/vote_rules.py +++ b/askbot/conf/vote_rules.py @@ -65,7 +65,7 @@ settings.register( IntegerValue( VOTE_RULES, 'MIN_FLAGS_TO_HIDE_POST', - default=3, + default=2, description=_('Number of flags required to automatically hide posts') ) ) @@ -74,7 +74,7 @@ settings.register( IntegerValue( VOTE_RULES, 'MIN_FLAGS_TO_DELETE_POST', - default=5, + default=3, description=_('Number of flags required to automatically delete posts') ) ) -- cgit v1.2.3-1-g7c22