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>
11 lines
310 B
Python
11 lines
310 B
Python
from django.utils.module_loading import import_string
|
|
|
|
from .settings import setting_gpg_path
|
|
|
|
# TODO: This will become an setting option in 2.2
|
|
SETTING_GPG_BACKEND = 'mayan.apps.django_gpg.classes.PythonGNUPGBackend'
|
|
|
|
gpg_backend = import_string(SETTING_GPG_BACKEND)(
|
|
binary_path=setting_gpg_path.value
|
|
)
|