summaryrefslogtreecommitdiffstats
path: root/askbot/conf
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-29 22:55:08 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-29 22:55:08 -0400
commit89da4175785a27edcd1a9b1985e662a83c95213c (patch)
treebe598498612ea721791199e2342272c5fb726214 /askbot/conf
parent86c38acf1038c23f0f4bd83a980cf5369834eaf5 (diff)
downloadaskbot-89da4175785a27edcd1a9b1985e662a83c95213c.tar.gz
askbot-89da4175785a27edcd1a9b1985e662a83c95213c.tar.bz2
askbot-89da4175785a27edcd1a9b1985e662a83c95213c.zip
moved a setting from one section to another and fixed a bug in display of user webpage url
Diffstat (limited to 'askbot/conf')
-rw-r--r--askbot/conf/__init__.py2
-rw-r--r--askbot/conf/forum_data_rules.py15
-rw-r--r--askbot/conf/question_lists.py (renamed from askbot/conf/main_pages.py)30
3 files changed, 24 insertions, 23 deletions
diff --git a/askbot/conf/__init__.py b/askbot/conf/__init__.py
index c1989f8d..0f92bf99 100644
--- a/askbot/conf/__init__.py
+++ b/askbot/conf/__init__.py
@@ -8,7 +8,7 @@ import askbot.conf.karma_and_badges_visibility
import askbot.conf.email
import askbot.conf.forum_data_rules
import askbot.conf.moderation
-import askbot.conf.main_pages
+import askbot.conf.question_lists
import askbot.conf.flatpages
import askbot.conf.site_settings
import askbot.conf.license
diff --git a/askbot/conf/forum_data_rules.py b/askbot/conf/forum_data_rules.py
index 524ab16a..b318e4a2 100644
--- a/askbot/conf/forum_data_rules.py
+++ b/askbot/conf/forum_data_rules.py
@@ -31,6 +31,21 @@ settings.register(
settings.register(
livesettings.BooleanValue(
FORUM_DATA_RULES,
+ 'ASK_BUTTON_ENABLED',
+ default=True,
+ description=_('Enable big Ask button'),
+ help_text=_(
+ 'Disabling this button will reduce number of new questions. '
+ 'If this button is disabled, the ask button in the search menu '
+ 'will still be available.'
+ )
+ )
+)
+
+
+settings.register(
+ livesettings.BooleanValue(
+ FORUM_DATA_RULES,
'ENABLE_VIDEO_EMBEDDING',
default = False,
description = _('Enable embedding videos. '),
diff --git a/askbot/conf/main_pages.py b/askbot/conf/question_lists.py
index 06339a2f..dcf06378 100644
--- a/askbot/conf/main_pages.py
+++ b/askbot/conf/question_lists.py
@@ -6,29 +6,15 @@ from askbot.conf.super_groups import DATA_AND_FORMATTING
from askbot.deps import livesettings
from django.utils.translation import ugettext_lazy as _
-MAIN_PAGES = livesettings.ConfigurationGroup(
- 'MAIN_PAGES',
- _('Logic of the questions page'),
+QUESTION_LISTS = livesettings.ConfigurationGroup(
+ 'QUESTION_LISTS',
+ _('Listings of questions'),
super_group=DATA_AND_FORMATTING
)
settings.register(
livesettings.BooleanValue(
- MAIN_PAGES,
- 'ASK_BUTTON_ENABLED',
- default=True,
- description=_('Enable big Ask button'),
- help_text=_(
- 'Disabling this button will reduce number of new questions. '
- 'If this button is disabled, the ask button in the search menu '
- 'will still be available.'
- )
- )
-)
-
-settings.register(
- livesettings.BooleanValue(
- MAIN_PAGES,
+ QUESTION_LISTS,
'ALL_SCOPE_ENABLED',
default=True,
description=_('Enable "All Questions" selector'),
@@ -38,7 +24,7 @@ settings.register(
settings.register(
livesettings.BooleanValue(
- MAIN_PAGES,
+ QUESTION_LISTS,
'UNANSWERED_SCOPE_ENABLED',
default=True,
description=_('Enable "Unanswered Questions" selector'),
@@ -48,7 +34,7 @@ settings.register(
settings.register(
livesettings.BooleanValue(
- MAIN_PAGES,
+ QUESTION_LISTS,
'FOLLOWED_SCOPE_ENABLED',
default=True,
description=_('Enable "Followed Questions" selector'),
@@ -71,7 +57,7 @@ SCOPE_CHOICES_AUTHENTICATED = (
settings.register(
livesettings.StringValue(
- MAIN_PAGES,
+ QUESTION_LISTS,
'DEFAULT_SCOPE_AUTHENTICATED',
choices=SCOPE_CHOICES_AUTHENTICATED,
default='all',
@@ -87,7 +73,7 @@ SCOPE_CHOICES_ANONYMOUS = (#anonymous users can't see followed questions
settings.register(
livesettings.StringValue(
- MAIN_PAGES,
+ QUESTION_LISTS,
'DEFAULT_SCOPE_ANONYMOUS',
choices=SCOPE_CHOICES_ANONYMOUS,
default='all',