Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
cloudooo
Commits
5e2b3945
Commit
5e2b3945
authored
Jan 17, 2017
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ooo: fix backward compatibily + update test
also update test for unhandled libreoffice 5.2 formats
parent
d5421ec7
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
90 deletions
+33
-90
cloudooo/handler/ooo/handler.py
cloudooo/handler/ooo/handler.py
+1
-1
cloudooo/handler/ooo/tests/testOooHandler.py
cloudooo/handler/ooo/tests/testOooHandler.py
+32
-89
No files found.
cloudooo/handler/ooo/handler.py
View file @
5e2b3945
...
@@ -241,7 +241,7 @@ class Handler(object):
...
@@ -241,7 +241,7 @@ class Handler(object):
continue
continue
if
ext
:
if
ext
:
mimetype
,
_
=
mimetypes
.
guess_type
(
"a."
+
ext
)
# XXX never guess
mimetype
,
_
=
mimetypes
.
guess_type
(
"a."
+
ext
)
# XXX never guess
if
mimetype
and
mimetype
!=
parsed_mimetype_type
:
if
mimetype
:
output_set
.
add
((
mimetype
,
title
))
output_set
.
add
((
mimetype
,
title
))
return
list
(
output_set
)
return
list
(
output_set
)
...
...
cloudooo/handler/ooo/tests/testOooHandler.py
View file @
5e2b3945
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment