diff --git a/mayan/apps/documents/models.py b/mayan/apps/documents/models.py index 2c2a5c6632..c0ea043b87 100644 --- a/mayan/apps/documents/models.py +++ b/mayan/apps/documents/models.py @@ -20,11 +20,10 @@ from django.utils.translation import ugettext from django.utils.translation import ugettext_lazy as _ from converter.api import convert, get_page_count, get_available_transformations_choices -from converter.exceptions import UnknownFileFormat, UnkownConvertError +from converter.exceptions import UnknownFileFormat from converter.literals import (DEFAULT_ZOOM_LEVEL, DEFAULT_ROTATION, DEFAULT_PAGE_NUMBER) -from mimetype.api import (get_mimetype, get_icon_file_path, - get_error_icon_file_path) +from mimetype.api import get_mimetype from .conf.settings import (CHECKSUM_FUNCTION, UUID_FUNCTION, STORAGE_BACKEND, DISPLAY_SIZE, CACHE_PATH, diff --git a/mayan/apps/documents/views.py b/mayan/apps/documents/views.py index 6fdb61b9a0..b5169c8b11 100644 --- a/mayan/apps/documents/views.py +++ b/mayan/apps/documents/views.py @@ -24,7 +24,6 @@ from common.utils import (pretty_size, parse_range, urlquote, return_diff, encapsulate) from common.widgets import two_state_template from common.conf.settings import DEFAULT_PAPER_SIZE -from converter.exceptions import UnknownFileFormat, UnkownConvertError from converter.literals import (DEFAULT_ZOOM_LEVEL, DEFAULT_ROTATION, DEFAULT_PAGE_NUMBER, DEFAULT_FILE_FORMAT_MIMETYPE) from converter.office_converter import OfficeConverter @@ -34,7 +33,7 @@ from navigation.utils import resolve_to_name from permissions.models import Permission from .events import HISTORY_DOCUMENT_EDITED -from .conf.settings import (DISPLAY_SIZE, PREVIEW_SIZE, STORAGE_BACKEND, ZOOM_PERCENT_STEP, +from .conf.settings import (PREVIEW_SIZE, STORAGE_BACKEND, ZOOM_PERCENT_STEP, ZOOM_MAX_LEVEL, ZOOM_MIN_LEVEL, ROTATION_STEP, RECENT_COUNT) from .forms import (DocumentForm_edit, DocumentPropertiesForm, DocumentPreviewForm, DocumentPageForm,