# Path: media_tree/media_types.py
# FOLDER = 100
# FILE = 200
# ARCHIVE = 210
# AUDIO = 220
# DOCUMENT = 230
# IMAGE = 240
# SUPPORTED_IMAGE = 241
# VECTOR_IMAGE = 242
# TEXT = 250
# VIDEO = 260


from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from media_tree import media_types
from collections import OrderedDict
MEDIA_TREE_ORDERING_DEFAULT = ['name']

"""
List of mimetypes not convered by the `mimetypes` Python module (for instance,
    .flv is not guessed by `guess_mimetype`.)
"""
MEDIA_TREE_EXT_MIMETYPE_MAP = {
    'flv': 'video/x-flv',
}

MEDIA_TREE_MPTT_ADMIN_LEVEL_INDENT = getattr(settings,
    'MEDIA_TREE_MPTT_ADMIN_LEVEL_INDENT', 25)

MEDIA_TREE_MIMETYPE_CONTENT_TYPE_MAP = {
    'application/octet-stream': media_types.FILE,
    'application/zip': media_types.ARCHIVE,
    'application/x-rar-compressed': media_types.ARCHIVE,
    'application/x-tar': media_types.ARCHIVE,
    'application/x-ace-compressed': media_types.ARCHIVE,
    'application': media_types.DOCUMENT,
    'audio': media_types.AUDIO,
    'image': media_types.IMAGE,
    'text': media_types.TEXT,
    'video': media_types.VIDEO,
}

MEDIA_TREE_CONTENT_TYPE_CHOICES = (
    (media_types.FOLDER, _('folder')),
    (media_types.ARCHIVE, _('archive')),
    (media_types.AUDIO, _('audio')),

# Path: media_tree/media_types.py
# FOLDER = 100
# FILE = 200
# ARCHIVE = 210
# AUDIO = 220
# DOCUMENT = 230
# IMAGE = 240
# SUPPORTED_IMAGE = 241
# VECTOR_IMAGE = 242
# TEXT = 250
# VIDEO = 260


# Path: media_tree/settings.py
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from media_tree import media_types
from collections import OrderedDict

MEDIA_TREE_ORDERING_DEFAULT = ['name']

"""
List of mimetypes not convered by the `mimetypes` Python module (for instance,
    .flv is not guessed by `guess_mimetype`.)
"""
MEDIA_TREE_EXT_MIMETYPE_MAP = {
    'flv': 'video/x-flv',
}

MEDIA_TREE_MPTT_ADMIN_LEVEL_INDENT = getattr(settings,
    'MEDIA_TREE_MPTT_ADMIN_LEVEL_INDENT', 25)

MEDIA_TREE_MIMETYPE_CONTENT_TYPE_MAP = {
    'application/octet-stream': media_types.FILE,
    'application/zip': media_types.ARCHIVE,
    'application/x-rar-compressed': media_types.ARCHIVE,
    'application/x-tar': media_types.ARCHIVE,
    'application/x-ace-compressed': media_types.ARCHIVE,
    'application': media_types.DOCUMENT,
    'audio': media_types.AUDIO,
    'image': media_types.IMAGE,
    'text': media_types.TEXT,
    'video': media_types.VIDEO,
}

MEDIA_TREE_CONTENT_TYPE_CHOICES = (
    (media_types.FOLDER, _('folder')),
    (media_types.ARCHIVE, _('archive')),
    (media_types.AUDIO, _('audio')),

    (media_types.DOCUMENT, _('document')),