Files
mayan-edms/mayan/apps/django_gpg/runtime.py
Roberto Rosario 8d8ec59e03 Django GPG: Setting options changes
Remove the SIGNATURES_GPG_HOME settings. The GPG keys are no longer
stored in disk but in the database itself making this setting obsolete.
This changed happened several versions ago and this removal doesn't affect
any code path.

Add two new settings to the app: SIGNATURES_GPG_BACKEND and
SIGNATURES_GPG_BACKEND_ARGUMENTS. These settings allow changing the
GPG backend that the app will use.

Remove the settings SIGNATURES_GPG_PATH. The path to the GPG binary
is now passed via the SIGNATURES_GPG_BACKEND_ARGUMENTS.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
2018-12-06 02:34:15 -04:00

10 lines
249 B
Python

from django.utils.module_loading import import_string
from .settings import (
setting_gpg_backend, setting_gpg_backend_arguments
)
gpg_backend = import_string(
dotted_path=setting_gpg_backend.value
)(**setting_gpg_backend_arguments.value)