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
707b0eb0
Commit
707b0eb0
authored
Oct 24, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+1
parent
b3bcd840
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cloudooo/handler/x2t/handler.py
cloudooo/handler/x2t/handler.py
+1
-1
No files found.
cloudooo/handler/x2t/handler.py
View file @
707b0eb0
...
@@ -102,7 +102,7 @@ class Handler(object):
...
@@ -102,7 +102,7 @@ class Handler(object):
def
convert
(
self
,
destination_mimetype
=
None
,
**
kw
):
def
convert
(
self
,
destination_mimetype
=
None
,
**
kw
):
""" Convert the inputed file to output as format that were informed """
""" Convert the inputed file to output as format that were informed """
source_format
=
self
.
file
.
source_format
source_format
=
self
.
file
.
source_format
destination_format
=
mimetype_format_dict
[
destination_mimetype
]
if
"/"
in
destination_mimetype
else
destination_mimetype
)
destination_format
=
mimetype_format_dict
[
destination_mimetype
]
if
"/"
in
destination_mimetype
else
destination_mimetype
logger
.
debug
(
"x2t convert: %s > %s"
%
(
self
.
source_mimetype
,
destination_mimetype
))
logger
.
debug
(
"x2t convert: %s > %s"
%
(
self
.
source_mimetype
,
destination_mimetype
))
# init vars and xml configuration file
# init vars and xml configuration file
...
...
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