blob: 9add71b1ed5e4e51e6fe0d70582a6a1648b2bc01 (
plain)
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
|
"""
User policy settings
"""
from askbot.conf.settings_wrapper import settings
from askbot.deps.livesettings import ConfigurationGroup, BooleanValue, IntegerValue
from django.utils.translation import ugettext as _
USER_SETTINGS = ConfigurationGroup(
'USER_SETTINGS',
_('User policy settings')
)
settings.register(
BooleanValue(
USER_SETTINGS,
'EDITABLE_SCREEN_NAME',
default=True,
description=_('Allow editing user screen name')
)
)
settings.register(
IntegerValue(
USER_SETTINGS,
'MIN_USERNAME_LENGTH',
hidden=True,
default=1,
description=_('Minimum allowed length for screen name')
)
)
|