use external file type for image (usually media asset) if nothing else ist found

This commit is contained in:
Helmut Merz 2012-12-13 18:07:45 +01:00
parent f30e7d1698
commit e345109432

View file

@ -197,6 +197,8 @@ class DirectoryCollectionProvider(object):
extFileType = extFileTypes.get(contentType.split('/')[0] + '/*')
if extFileType is None:
extFileType = extFileTypes['*/*']
if extFileType is None:
extFileType = extFileTypes['image/*']
if extFileType is None:
getLogger('loops.integrator.collection.DirectoryCollectionProvider'
).warn('No external file type found for %r, '