Files
mayan-edms/mayan/apps/lock_manager/settings.py
Roberto Rosario 36a51eeb73 Switch to full app paths
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>
2019-04-05 02:02:57 -04:00

27 lines
826 B
Python

from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from mayan.apps.smart_settings import Namespace
DEFAULT_BACKEND = 'mayan.apps.lock_manager.backends.file_lock.FileLock'
DEFAULT_LOCK_TIMEOUT_VALUE = 30
namespace = Namespace(name='lock_manager', label=_('Lock manager'))
setting_backend = namespace.add_setting(
default=DEFAULT_BACKEND,
global_name='LOCK_MANAGER_BACKEND', help_text=_(
'Path to the class to use when to request and release '
'resource locks.'
)
)
setting_default_lock_timeout = namespace.add_setting(
default=DEFAULT_LOCK_TIMEOUT_VALUE,
global_name='LOCK_MANAGER_DEFAULT_LOCK_TIMEOUT', help_text=_(
'Default amount of time in seconds after which a resource '
'lock will be automatically released.'
)
)