2014-05-08 16:59:35 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
|
|
|
|
|
|
ACCOUNTS_TYPES = getattr(settings, 'ACCOUNTS_TYPES', (
|
|
|
|
('INDIVIDUAL', _("Individual")),
|
|
|
|
('ASSOCIATION', _("Association")),
|
2014-07-16 15:20:16 +00:00
|
|
|
('CUSTOMER', _("Customer")),
|
2014-05-08 16:59:35 +00:00
|
|
|
('COMPANY', _("Company")),
|
|
|
|
('PUBLICBODY', _("Public body")),
|
|
|
|
))
|
|
|
|
|
|
|
|
ACCOUNTS_DEFAULT_TYPE = getattr(settings, 'ACCOUNTS_DEFAULT_TYPE', 'INDIVIDUAL')
|
|
|
|
|
|
|
|
|
|
|
|
ACCOUNTS_LANGUAGES = getattr(settings, 'ACCOUNTS_LANGUAGES', (
|
|
|
|
('en', _('English')),
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
|
|
ACCOUNTS_DEFAULT_LANGUAGE = getattr(settings, 'ACCOUNTS_DEFAULT_LANGUAGE', 'en')
|
2014-08-19 18:59:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
ACCOUNTS_MAIN_PK = getattr(settings, 'ACCOUNTS_MAIN_PK', 1)
|
2014-10-20 15:51:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
ACCOUNTS_CREATE_RELATED = getattr(settings, 'ACCOUNTS_CREATE_RELATED', (
|
|
|
|
# <model>, <key field>, <kwargs>, <help_text>
|
|
|
|
('systemusers.SystemUser',
|
|
|
|
'username',
|
|
|
|
{
|
|
|
|
'username': 'account.username',
|
|
|
|
'password': 'account.password',
|
|
|
|
'is_main': 'True',
|
|
|
|
},
|
2014-10-21 11:22:31 +00:00
|
|
|
_("Designates whether to creates a related system user with the same username and password or not."),
|
2014-10-20 15:51:24 +00:00
|
|
|
),
|
|
|
|
('mailboxes.Mailbox',
|
|
|
|
'name',
|
|
|
|
{
|
|
|
|
'name': 'account.username',
|
|
|
|
'password': 'account.password',
|
|
|
|
},
|
|
|
|
_("Designates whether to creates a related mailbox with the same name and password or not."),
|
|
|
|
),
|
|
|
|
('domains.Domain',
|
|
|
|
'name',
|
|
|
|
{
|
|
|
|
'name': '"%s.orchestra.lan" % account.username'
|
|
|
|
},
|
|
|
|
_("Designates whether to creates a related subdomain <username>.orchestra.lan or not."),
|
|
|
|
),
|
|
|
|
))
|