17 lines
610 B
Python
17 lines
610 B
Python
from django.utils.translation import ugettext_lazy as _
|
|
from django.core.exceptions import ImproperlyConfigured
|
|
|
|
from navigation.api import register_sidebar_template
|
|
|
|
from converter.utils import load_backend
|
|
from converter.conf.settings import GRAPHICS_BACKEND
|
|
|
|
formats_list = {'text': _('file formats'), 'view': 'formats_list', 'famfam': 'pictures'}
|
|
|
|
register_sidebar_template(['formats_list'], 'converter_file_formats_help.html')
|
|
|
|
try:
|
|
backend = load_backend().ConverterClass()
|
|
except ImproperlyConfigured:
|
|
raise ImproperlyConfigured(u'Missing or incorrect converter backend: %s' % GRAPHICS_BACKEND)
|