# Path: trumbowyg/settings.py
# UPLOAD_PATH = getattr(settings, 'TRUMBOWYG_UPLOAD_PATH', 'uploads/')
# THUMBNAIL_SIZE = getattr(settings, 'TRUMBOWYG_THUMBNAIL_SIZE', None)
# TRANSLITERATE_FILENAME = getattr(settings, 'TRUMBOWYG_TRANSLITERATE_FILENAME', False)
# SEMANTIC = getattr(settings, 'TRUMBOWYG_SEMANTIC', 'false')


import logging
import six
from django.utils.text import slugify as django_slugify
from trumbowyg import settings as _settings
            from unidecode import unidecode


logger = logging.getLogger(__name__)


def slugify(value):
    if _settings.TRANSLITERATE_FILENAME:
        try:
            value = unidecode(six.text_type(value))

# Path: trumbowyg/settings.py
# UPLOAD_PATH = getattr(settings, 'TRUMBOWYG_UPLOAD_PATH', 'uploads/')
# THUMBNAIL_SIZE = getattr(settings, 'TRUMBOWYG_THUMBNAIL_SIZE', None)
# TRANSLITERATE_FILENAME = getattr(settings, 'TRUMBOWYG_TRANSLITERATE_FILENAME', False)
# SEMANTIC = getattr(settings, 'TRUMBOWYG_SEMANTIC', 'false')


# Path: trumbowyg/utils.py
import logging
import six
from django.utils.text import slugify as django_slugify
from trumbowyg import settings as _settings
            from unidecode import unidecode



logger = logging.getLogger(__name__)


def slugify(value):
    if _settings.TRANSLITERATE_FILENAME:
        try:
            value = unidecode(six.text_type(value))

        except ImportError as e: