src/cm/cm_settings.py
author raph
Tue, 20 Apr 2010 11:14:21 +0200
branchpreserve_html
changeset 259 0371caf8bcc6
parent 228 3a0f8b54a151
child 282 b5deb8e32219
permissions -rw-r--r--
always use pandoc but in raw mode for html->html convert

# default cm settings

from django.conf import settings

def get_setting(setting_name, default=None):
    return getattr(settings, setting_name, default)

VALID_EMAIL_FOR_PUBLISH = get_setting('VALID_EMAIL_FOR_PUBLISH', True)

CM_EMAIL_SUBJECT_PREFIX = get_setting('CM_EMAIL_SUBJECT_PREFIX', '[comt] ')

SITE_NAME = get_setting('SITE_NAME', 'comt ')

DEFAULT_TIME_ZONE = get_setting('DEFAULT_TIME_ZONE','Europe/Paris') 

# button for new text version creation checked by default 
NEW_TEXT_VERSION_ON_EDIT = get_setting('NEW_TEXT_VERSION_ON_EDIT', True)

# option to bypass all security checks 
NO_SECURITY = get_setting('NO_SECURITY', False)

# should every contributor be registered to notifications automatically
AUTO_CONTRIB_REGISTER = get_setting('AUTO_CONTRIB_REGISTER', False)

# show email in user list
SHOW_EMAILS_IN_ADMIN = get_setting('SHOW_EMAILS_IN_ADMIN', True)

TRACKING_HTML = get_setting('TRACKING_HTML', '')