Commit 520db974 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

exclude some import filters added by LibreOffice.

exclude 'MS Word 97 Vorlage' by name, because it has a different Flags value than OOo 3.2.1.
now testAllFormats.py should pass on LibreOffice.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42434 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cfac2f4f
......@@ -105,6 +105,15 @@ class MimeMapper(object):
# XXX - try find a good way to remove filters that are not used for export
bad_flag_list = [65, 94217, 536641, 1572929, 268959937,
524373, 85, 524353, 524391]
bad_name_list = [
'MS Word 97 Vorlage',
'draw_pdf_addstream_import',
'draw_pdf_import',
'impress_pdf_addstream_import',
'impress_pdf_import',
'writer_pdf_addstream_import',
'writer_pdf_import',
]
uno_path = kw.get("uno_path", environ.get('uno_path'))
office_binary_path = kw.get("office_binary_path",
environ.get('office_binary_path'))
......@@ -122,6 +131,8 @@ class MimeMapper(object):
close_fds=True).communicate()
filter_dict, type_dict = json.loads(stdout)
for filter_name, value in filter_dict.iteritems():
if filter_name in bad_name_list:
continue
flag = value.get("Flags")
if flag in bad_flag_list:
continue
......
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