1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
"""
Social sharing settings
"""
from askbot.conf.settings_wrapper import settings
from askbot.conf.super_groups import EXTERNAL_SERVICES
from askbot.deps.livesettings import ConfigurationGroup, BooleanValue
from django.utils.translation import ugettext as _
SOCIAL_SHARING = ConfigurationGroup(
'SOCIAL_SHARING',
_('Sharing content on social networks'),
super_group = EXTERNAL_SERVICES
)
settings.register(
BooleanValue(
SOCIAL_SHARING,
'ENABLE_SHARING_TWITTER',
default=True,
description=_('Check to enable sharing of questions on Twitter')
)
)
settings.register(
BooleanValue(
SOCIAL_SHARING,
'ENABLE_SHARING_FACEBOOK',
default=True,
description=_('Check to enable sharing of questions on Facebook')
)
)
settings.register(
BooleanValue(
SOCIAL_SHARING,
'ENABLE_SHARING_LINKEDIN',
default=True,
description=_('Check to enable sharing of questions on LinkedIn')
)
)
settings.register(
BooleanValue(
SOCIAL_SHARING,
'ENABLE_SHARING_IDENTICA',
default=True,
description=_('Check to enable sharing of questions on Identi.ca')
)
)
settings.register(
BooleanValue(
SOCIAL_SHARING,
'ENABLE_SHARING_GOOGLE',
default=True,
description=_('Check to enable sharing of questions on Google+')
)
)
|