Commit 6e2b19d3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

now duplicates are already removed in handler/ooo/mimemapper.py.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42450 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c7436b9
......@@ -505,8 +505,8 @@ class TestServer(CloudoooTestCase):
response_code, response_dict, response_message = \
self.proxy.getAllowedTargetItemList(mimetype)
self.assertEquals(response_code, 200)
self.assertEquals(len(response_dict['response_data']), 29)
self.assertTrue(['htm', 'HTML Document'] in response_dict['response_data'])
self.assertEquals(len(response_dict['response_data']), 30)
self.assertTrue(['html', 'HTML Document'] in response_dict['response_data'])
def test_suite():
......
......@@ -277,10 +277,6 @@ class Manager(object):
try:
extension_list = self.getAllowedExtensionList({"mimetype": content_type})
response_dict['response_data'] = extension_list
# XXX - procedure to remove duplicate filters
for data in response_dict['response_data']:
if data[0] == "html":
response_dict['response_data'].remove(data)
return (200, response_dict, '')
except Exception, e:
logger.error(e)
......
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