EMAIL, 'EMAIL_SUBJECT_PREFIX', default = EMAIL_SUBJECT_PREFIX, description = _('Prefix for the email subject line'), help_text = _( 'This setting takes default from the django setting' 'EMAIL_SUBJECT_PREFIX. A value entered here will override' 'the default.' ) ) ) settings.register( livesettings.BooleanValue( EMAIL, 'ENABLE_EMAIL_ALERTS', default = True, description = _('Enable email alerts'), ) ) settings.register( livesettings.IntegerValue( EMAIL, 'MAX_ALERTS_PER_EMAIL', default=7, description=_('Maximum number of news entries in an email alert') ) ) settings.register( livesettings.StringValue(
'MIN_QUESTION_BODY_LENGTH', default=10, description=_( 'Minimum length of question body (number of characters)'))) settings.register( livesettings.IntegerValue( FORUM_DATA_RULES, 'MIN_ANSWER_BODY_LENGTH', default=10, description=_('Minimum length of answer body (number of characters)'))) settings.register( livesettings.BooleanValue( FORUM_DATA_RULES, 'LIMIT_ONE_ANSWER_PER_USER', default=True, description=_('Limit one answer per question per user'))) settings.register( livesettings.BooleanValue( FORUM_DATA_RULES, 'ENABLE_TAG_MODERATION', default=False, description=_('Enable tag moderation'), help_text=_('If enabled, any new tags will not be applied ' 'to the questions, but emailed to the moderators. ' 'To use this feature, tags must be optional.'))) settings.register( livesettings.BooleanValue(
description=_('Google Analytics key'), help_text=_( 'Obtain is at <a href="%(url)s">' 'Google Analytics</a> site, if you ' 'wish to use Google Analytics to monitor ' 'your site' ) % { 'url': 'http://www.google.com/intl/%s/analytics/' % django_settings.LANGUAGE_CODE } ) ) settings.register( livesettings.BooleanValue( EXTERNAL_KEYS, 'USE_RECAPTCHA', description=_('Enable recaptcha (keys below are required)'), default=False ) ) settings.register( livesettings.StringValue( EXTERNAL_KEYS, 'RECAPTCHA_KEY', description=_('Recaptcha public key') ) ) settings.register( livesettings.StringValue(
from openode.conf.settings_wrapper import settings from openode.conf.super_groups import LOGIN_USERS_COMMUNICATION from openode.deps import livesettings from django.utils.translation import ugettext as _ ACCESS_CONTROL = livesettings.ConfigurationGroup( 'ACCESS_CONTROL', _('Access control settings'), super_group = LOGIN_USERS_COMMUNICATION ) settings.register( livesettings.BooleanValue( ACCESS_CONTROL, 'OPENODE_CLOSED_FORUM_MODE', default=False, description=_('Allow only registered user to access the forum'), ) ) EMAIL_VALIDATION_CASE_CHOICES = ( ('nothing', _('nothing - not required')), ('see-content', _('access to content')), #'post-content', _('posting content'), ) settings.register( livesettings.StringValue( ACCESS_CONTROL, 'REQUIRE_VALID_EMAIL_FOR', default='nothing',
from openode.deps import livesettings from openode.conf.settings_wrapper import settings from openode.conf.super_groups import EXTERNAL_SERVICES SPAM_AND_MODERATION = livesettings.ConfigurationGroup( 'SPAM_AND_MODERATION', _('Akismet spam protection'), super_group = EXTERNAL_SERVICES ) settings.register( livesettings.BooleanValue( SPAM_AND_MODERATION, 'USE_AKISMET', description=_('Enable Akismet spam detection(keys below are required)'), default=False, help_text = _( 'To get an Akismet key please visit ' '<a href="%(url)s">Akismet site</a>' ) % {'url': const.DEPENDENCY_URLS['akismet']} ) ) settings.register( livesettings.StringValue( SPAM_AND_MODERATION, 'AKISMET_API_KEY', description=_('Akismet key for spam detection') ) )
USER_SETTINGS = livesettings.ConfigurationGroup( 'USER_SETTINGS', _('User settings'), super_group=LOGIN_USERS_COMMUNICATION) # settings.register( # livesettings.LongStringValue( # USER_SETTINGS, # 'NEW_USER_GREETING', # default='', # description=_('On-screen greeting shown to the new users') # ) # ) settings.register( livesettings.BooleanValue( USER_SETTINGS, 'ALLOW_ANONYMOUS_FEEDBACK', default=True, description=_('Allow anonymous users send feedback'))) settings.register( livesettings.BooleanValue( USER_SETTINGS, 'AUTOFILL_USER_DATA', default=True, description=_('Auto-fill user name, email, etc on registration'), help_text=_('Implemented only for LDAP logins at this point'))) settings.register( livesettings.BooleanValue( USER_SETTINGS, 'ALLOW_EMAIL_ADDRESS_IN_USERNAME',
super_group=LOGIN_USERS_COMMUNICATION) # settings.register( # livesettings.BooleanValue( # LOGIN_PROVIDERS, # 'PASSWORD_REGISTER_SHOW_PROVIDER_BUTTONS', # default = True, # description=_('Show alternative login provider buttons on the password "Sign Up" page'), # ) # ) settings.register( livesettings.BooleanValue( LOGIN_PROVIDERS, 'SIGNIN_ALWAYS_SHOW_LOCAL_LOGIN', default=True, description=_( 'Always display local login form and hide "Openode" button.'), )) settings.register( livesettings.BooleanValue( LOGIN_PROVIDERS, 'SIGNIN_WORDPRESS_SITE_ENABLED', default=False, description=_( 'Activate to allow login with self-hosted wordpress site'), help_text= _('to activate this feature you must fill out the wordpress xml-rpc setting bellow' )))
'APP_SHORT_NAME', default='Openode', description=_('Short name for your installation'))) settings.register( livesettings.StringValue( QA_SITE_SETTINGS, 'APP_URL', description=_('Base URL for your installation, must start with ' 'http or https'), )) settings.register( livesettings.BooleanValue( QA_SITE_SETTINGS, 'ENABLE_GREETING_FOR_ANON_USER', default=True, description=_('Check to enable greeting for anonymous user'))) # TODO DEPRECATED # settings.register( # livesettings.StringValue( # QA_SITE_SETTINGS, # 'GREETING_FOR_ANONYMOUS_USER', # default='First time here? Check out the FAQ!', # hidden=False, # description=_( # 'Text shown in the greeting message ' # 'shown to the anonymous user' # ), # help_text=_(