Instead of inserting the path of the apps into the Python app, the apps are now referenced by their full import path. This solves name clashes with external or native Python libraries. Example: Mayan statistics app vs. Python new statistics library. Every app reference is now prepended with 'mayan.apps'. Existing config.yml files need to be updated manually. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
33 lines
1.2 KiB
Python
33 lines
1.2 KiB
Python
from __future__ import unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from mayan.apps.smart_settings import Namespace
|
|
|
|
from .literals import (
|
|
DEFAULT_DOCUMENT_BODY_TEMPLATE, DEFAULT_LINK_BODY_TEMPLATE
|
|
)
|
|
|
|
namespace = Namespace(name='mailer', label=_('Mailing'))
|
|
|
|
setting_link_subject_template = namespace.add_setting(
|
|
default=_('Link for document: {{ document }}'),
|
|
help_text=_('Template for the document link email form subject line.'),
|
|
global_name='MAILER_LINK_SUBJECT_TEMPLATE', quoted=True
|
|
)
|
|
setting_link_body_template = namespace.add_setting(
|
|
default=DEFAULT_LINK_BODY_TEMPLATE,
|
|
help_text=_('Template for the document link email form body text. Can include HTML.'),
|
|
global_name='MAILER_LINK_BODY_TEMPLATE', quoted=True
|
|
)
|
|
setting_document_subject_template = namespace.add_setting(
|
|
default=_('Document: {{ document }}'),
|
|
help_text=_('Template for the document email form subject line.'),
|
|
global_name='MAILER_DOCUMENT_SUBJECT_TEMPLATE', quoted=True
|
|
)
|
|
setting_document_body_template = namespace.add_setting(
|
|
default=DEFAULT_DOCUMENT_BODY_TEMPLATE,
|
|
help_text=_('Template for the document email form body text. Can include HTML.'),
|
|
global_name='MAILER_DOCUMENT_BODY_TEMPLATE', quoted=True
|
|
)
|