Commit 7fd10048 authored by Nicolas Delaby's avatar Nicolas Delaby

Fix usage of globs

This is a list, not a string, take the first occurrence as arbitrary candidate
parent c87cf495
...@@ -147,7 +147,7 @@ class OOOdCommandTransform(commandtransform): ...@@ -147,7 +147,7 @@ class OOOdCommandTransform(commandtransform):
format = mimetype_object.extensions[0] format = mimetype_object.extensions[0]
break break
elif mimetype_object.globs: elif mimetype_object.globs:
format = mimetype_object.globs.strip('*.') format = mimetype_object.globs[0].strip('*.')
break break
if getattr(image, 'meta_type', None) == 'ERP5 Image': if getattr(image, 'meta_type', None) == 'ERP5 Image':
#ERP5 API #ERP5 API
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment