from telemeta.util.kdenlive.session import *
from django.db import models
-collection_published_code_regex = '[A-Za-z0-9._-]*'
-collection_unpublished_code_regex = '[A-Za-z0-9._-]*'
+collection_published_code_regex = '[A-Za-z0-9._+-]*'
+collection_unpublished_code_regex = '[A-Za-z0-9._+-]*'
collection_code_regex = '(?:%s|%s)' % (collection_published_code_regex,
collection_unpublished_code_regex)
-item_published_code_regex = '[A-Za-z0-9._-]*'
-item_unpublished_code_regex = '[A-Za-z0-9._-]*'
+item_published_code_regex = '[A-Za-z0-9._+-]*'
+item_unpublished_code_regex = '[A-Za-z0-9._+-]*'
item_code_regex = '(?:%s|%s)' % (item_published_code_regex, item_unpublished_code_regex)
PUBLIC_ACCESS_CHOICES = (('none', _('none')), ('metadata', _('metadata')),
if request.REQUEST.has_key('grapher_id'):
grapher_id = request.REQUEST['grapher_id']
else:
- try:
- grapher_id = settings.TELEMETA_DEFAULT_GRAPHER_ID
- except:
- grapher_id = 'waveform'
+ grapher_id = getattr(settings, 'TELEMETA_DEFAULT_GRAPHER_ID', 'waveform')
previous, next = self.item_previous_next(item)
mime_type = self.item_analyze(item)