Files
mayan-edms/mayan/apps/documents/storages.py
Roberto Rosario 8e66eefe7c Move file and storage code to the storage app
The setting COMMON_TEMPORARY_DIRECTORY is now
STORAGE_TEMPORARY_DIRECTORY.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
2019-01-31 22:30:51 -04:00

20 lines
632 B
Python

from __future__ import unicode_literals
from django.utils.module_loading import import_string
from mayan.apps.storage.utils import get_storage_subclass
from .settings import (
setting_documentimagecache_storage,
setting_documentimagecache_storage_arguments, setting_storage_backend,
setting_storage_backend_arguments
)
storage_documentversion = get_storage_subclass(
dotted_path=setting_storage_backend.value
)(**setting_storage_backend_arguments.value)
storage_documentimagecache = import_string(
dotted_path=setting_documentimagecache_storage.value
)(**setting_documentimagecache_storage_arguments.value)