Commit f9b619a5 authored by Nicolas Delaby's avatar Nicolas Delaby

Optimize


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44746 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c91b313
......@@ -182,12 +182,9 @@ class Manager(object):
extension = filename.split('.')[-1]
try:
response_dict = {}
response_dict['meta'] = self.getFileMetadataItemList(data,
extension,
True)
mimetype = self.getFileMetadataItemList(response_dict['meta']['Data'],
extension)['MIMEType']
response_dict['meta']['MIMEType'] = mimetype
metadata_dict = self.getFileMetadataItemList(data, extension,
base_document=True)
response_dict['meta'] = metadata_dict
# XXX - Backward compatibility: Previous API expects 'mime' now we
# use 'MIMEType'
response_dict['meta']['mime'] = response_dict['meta']['MIMEType']
......
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