Normalize import style
This commit is contained in:
@@ -23,20 +23,26 @@ from actstream import registry
|
|||||||
|
|
||||||
from acls.utils import apply_default_acls
|
from acls.utils import apply_default_acls
|
||||||
from common.settings import TEMPORARY_DIRECTORY
|
from common.settings import TEMPORARY_DIRECTORY
|
||||||
from converter.api import (convert, get_page_count,
|
from converter.api import (
|
||||||
get_available_transformations_choices)
|
convert, get_page_count, get_available_transformations_choices
|
||||||
|
)
|
||||||
from converter.exceptions import UnknownFileFormat
|
from converter.exceptions import UnknownFileFormat
|
||||||
from converter.literals import (DEFAULT_ZOOM_LEVEL, DEFAULT_ROTATION,
|
from converter.literals import (
|
||||||
DEFAULT_PAGE_NUMBER)
|
DEFAULT_ZOOM_LEVEL, DEFAULT_ROTATION, DEFAULT_PAGE_NUMBER
|
||||||
|
)
|
||||||
from mimetype.api import get_mimetype
|
from mimetype.api import get_mimetype
|
||||||
|
|
||||||
from .events import event_document_create
|
from .events import event_document_create
|
||||||
from .exceptions import NewDocumentVersionNotAllowed
|
from .exceptions import NewDocumentVersionNotAllowed
|
||||||
from .managers import (DocumentManager, DocumentPageTransformationManager,
|
from .managers import (
|
||||||
DocumentTypeManager, RecentDocumentManager)
|
DocumentManager, DocumentPageTransformationManager, DocumentTypeManager,
|
||||||
|
RecentDocumentManager
|
||||||
|
)
|
||||||
from .runtime import storage_backend
|
from .runtime import storage_backend
|
||||||
from .settings import (CACHE_PATH, DISPLAY_SIZE, LANGUAGE, LANGUAGE_CHOICES,
|
from .settings import (
|
||||||
ZOOM_MAX_LEVEL, ZOOM_MIN_LEVEL)
|
CACHE_PATH, DISPLAY_SIZE, LANGUAGE, LANGUAGE_CHOICES, ZOOM_MAX_LEVEL,
|
||||||
|
ZOOM_MIN_LEVEL
|
||||||
|
)
|
||||||
from .signals import post_version_upload, post_document_type_change
|
from .signals import post_version_upload, post_document_type_change
|
||||||
|
|
||||||
HASH_FUNCTION = lambda x: hashlib.sha256(x).hexdigest() # document image cache name hash function
|
HASH_FUNCTION = lambda x: hashlib.sha256(x).hexdigest() # document image cache name hash function
|
||||||
|
|||||||
Reference in New Issue
Block a user