Code now resides in common.serialization in the form of two new functions: yaml_load and yaml_dump. Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
19 lines
502 B
Python
19 lines
502 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.utils.module_loading import import_string
|
|
|
|
from mayan.apps.common.serialization import yaml_load
|
|
|
|
from .settings import (
|
|
setting_staging_file_image_cache_storage,
|
|
setting_staging_file_image_cache_storage_arguments,
|
|
)
|
|
|
|
storage_staging_file_image_cache = import_string(
|
|
dotted_path=setting_staging_file_image_cache_storage.value
|
|
)(
|
|
**yaml_load(
|
|
stream=setting_staging_file_image_cache_storage_arguments.value or '{}',
|
|
)
|
|
)
|