django-orchestra/orchestra/contrib/lists/settings.py

42 lines
1.1 KiB
Python
Raw Normal View History

2015-05-04 19:52:53 +00:00
from orchestra.contrib.settings import Setting
from orchestra.settings import ORCHESTRA_BASE_DOMAIN
2014-05-08 16:59:35 +00:00
2015-04-27 14:54:17 +00:00
LISTS_DOMAIN_MODEL = Setting('LISTS_DOMAIN_MODEL',
'domains.Domain',
validators=[Setting.validate_model_label]
)
2014-10-09 17:04:12 +00:00
2015-04-27 14:54:17 +00:00
LISTS_DEFAULT_DOMAIN = Setting('LISTS_DEFAULT_DOMAIN',
'grups.{}'.format(ORCHESTRA_BASE_DOMAIN),
2015-04-27 14:54:17 +00:00
help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default."
)
2015-04-26 13:53:00 +00:00
LISTS_LIST_URL = Setting('LISTS_LIST_URL',
# 'https://lists.{}/mailman/listinfo/%(name)s'.format(ORCHESTRA_BASE_DOMAIN),
'https://www.{0}/mailman3/lists/%(name)s.{0}'.format(LISTS_DEFAULT_DOMAIN),
2015-04-27 14:54:17 +00:00
help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default."
)
2014-07-11 14:48:46 +00:00
2014-10-23 15:38:46 +00:00
2015-04-27 14:54:17 +00:00
LISTS_MAILMAN_POST_LOG_PATH = Setting('LISTS_MAILMAN_POST_LOG_PATH',
'/var/log/mailman3/smtp'
2015-04-27 14:54:17 +00:00
)
2014-10-09 17:04:12 +00:00
2015-04-27 14:54:17 +00:00
LISTS_MAILMAN_ROOT_DIR = Setting('LISTS_MAILMAN_ROOT_DIR',
'/var/lib/mailman3'
2015-04-27 14:54:17 +00:00
)
2014-10-15 12:47:28 +00:00
2015-04-27 14:54:17 +00:00
LISTS_VIRTUAL_ALIAS_PATH = Setting('LISTS_VIRTUAL_ALIAS_PATH',
'/etc/postfix/mailman3_virtusertable'
2015-04-27 14:54:17 +00:00
)
2014-10-09 17:04:12 +00:00
2015-04-27 14:54:17 +00:00
LISTS_VIRTUAL_ALIAS_DOMAINS_PATH = Setting('LISTS_VIRTUAL_ALIAS_DOMAINS_PATH',
'/etc/postfix/mailman3_virtdomains'
2015-04-27 14:54:17 +00:00
)