| author | gibus |
| Mon, 14 May 2012 16:01:30 +0200 | |
| changeset 429 | fc7477d34489 |
| parent 360 | bfaab8740995 |
| child 651 | 9bbc657f6837 |
| permissions | -rw-r--r-- |
| 0 | 1 |
# default cm settings |
2 |
||
3 |
from django.conf import settings |
|
4 |
||
5 |
def get_setting(setting_name, default=None): |
|
6 |
return getattr(settings, setting_name, default) |
|
7 |
||
8 |
VALID_EMAIL_FOR_PUBLISH = get_setting('VALID_EMAIL_FOR_PUBLISH', True) |
|
9 |
||
10 |
CM_EMAIL_SUBJECT_PREFIX = get_setting('CM_EMAIL_SUBJECT_PREFIX', '[comt] ') |
|
11 |
||
12 |
SITE_NAME = get_setting('SITE_NAME', 'comt ') |
|
13 |
||
14 |
DEFAULT_TIME_ZONE = get_setting('DEFAULT_TIME_ZONE','Europe/Paris') |
|
15 |
||
16 |
# button for new text version creation checked by default |
|
17 |
NEW_TEXT_VERSION_ON_EDIT = get_setting('NEW_TEXT_VERSION_ON_EDIT', True) |
|
18 |
||
19 |
# option to bypass all security checks |
|
20 |
NO_SECURITY = get_setting('NO_SECURITY', False) |
|
21 |
||
22 |
# should every contributor be registered to notifications automatically |
|
| 44 | 23 |
AUTO_CONTRIB_REGISTER = get_setting('AUTO_CONTRIB_REGISTER', False) |
24 |
||
25 |
# show email in user list |
|
| 228 | 26 |
SHOW_EMAILS_IN_ADMIN = get_setting('SHOW_EMAILS_IN_ADMIN', True) |
27 |
||
|
282
b5deb8e32219
add STORE_ACTIVITY_IP parameter to avoid storing ips for activities.
raph
parents:
228
diff
changeset
|
28 |
TRACKING_HTML = get_setting('TRACKING_HTML', '') |
|
b5deb8e32219
add STORE_ACTIVITY_IP parameter to avoid storing ips for activities.
raph
parents:
228
diff
changeset
|
29 |
|
|
b5deb8e32219
add STORE_ACTIVITY_IP parameter to avoid storing ips for activities.
raph
parents:
228
diff
changeset
|
30 |
# Store IP (or not) in activity |
|
292
3442202aff1a
add parameter to display "decorated" creator (used with api calls)
raph
parents:
282
diff
changeset
|
31 |
STORE_ACTIVITY_IP = get_setting('STORE_ACTIVITY_IP', True) |
|
3442202aff1a
add parameter to display "decorated" creator (used with api calls)
raph
parents:
282
diff
changeset
|
32 |
|
|
3442202aff1a
add parameter to display "decorated" creator (used with api calls)
raph
parents:
282
diff
changeset
|
33 |
# Show 'decorated' users in comments (not structural creator id) |
|
360
bfaab8740995
Add abiword as an alternative to open office for conversions
gibus
parents:
292
diff
changeset
|
34 |
DECORATED_CREATORS = get_setting('DECORATED_CREATORS', False) |
|
bfaab8740995
Add abiword as an alternative to open office for conversions
gibus
parents:
292
diff
changeset
|
35 |
|
|
bfaab8740995
Add abiword as an alternative to open office for conversions
gibus
parents:
292
diff
changeset
|
36 |
# Use AbiWord for conversions |
|
bfaab8740995
Add abiword as an alternative to open office for conversions
gibus
parents:
292
diff
changeset
|
37 |
USE_ABI = get_setting('USE_ABI', False) |