PUBLIC_ACCESS_CHOICES = (('none', _('none')), ('metadata', _('metadata')),
('mixed', _('mixed')), ('full', _('full')))
-extra_types = {
+public_extra_types = {
'.webm': 'video/webm',
+}
+
+private_extra_types = {
'.eaf': 'text/xml', # ELAN Annotation Format
'.trs': 'text/xml', # Trancriber Annotation Format
'.svl': 'text/xml', # Sonic Visualiser layer file
'.TextGrid': 'text/praat-textgrid', # Praat TextGrid annotation file
}
-for ext,mime_type in extra_types.items():
+for ext,mime_type in public_extra_types.items():
+ mimetypes.add_type(mime_type, ext)
+
+for ext,mime_type in private_extra_types.items():
mimetypes.add_type(mime_type, ext)
app_name = 'telemeta'
context['mime_type'] = self.mime_type
context['last_revision'] = last_revision
context['format'] = format
-
+ context['private_extra_types'] = private_extra_types.values()
return context
-
class DublinCoreToFormatMetadata(object):
- """ a mapping class to get item DublinCore metadata dictionaries
+ """a mapping class to get item DublinCore metadata dictionaries
in various audio metadata format (MP3, OGG, etc...)"""
#FIXME: should be given by timeside