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
c56761ad
Commit
c56761ad
authored
Jun 07, 2016
by
Tristan Cavelier
Committed by
Cédric Le Ninivin
Jun 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow additional conversion parameters to handler.convert
parent
b55dc47c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cloudooo/manager.py
cloudooo/manager.py
+2
-2
No files found.
cloudooo/manager.py
View file @
c56761ad
...
@@ -73,7 +73,7 @@ class Manager(object):
...
@@ -73,7 +73,7 @@ class Manager(object):
self
.
handler_dict
=
self
.
kw
.
pop
(
"handler_dict"
)
self
.
handler_dict
=
self
.
kw
.
pop
(
"handler_dict"
)
def
convertFile
(
self
,
file
,
source_format
,
destination_format
,
zip
=
False
,
def
convertFile
(
self
,
file
,
source_format
,
destination_format
,
zip
=
False
,
refresh
=
False
):
refresh
=
False
,
conversion_kw
=
{}
):
"""Returns the converted file in the given format.
"""Returns the converted file in the given format.
Keywords arguments:
Keywords arguments:
file -- File as string in base64
file -- File as string in base64
...
@@ -92,7 +92,7 @@ class Manager(object):
...
@@ -92,7 +92,7 @@ class Manager(object):
decodestring
(
file
),
decodestring
(
file
),
source_format
,
source_format
,
**
self
.
kw
)
**
self
.
kw
)
decode_data
=
handler
.
convert
(
destination_format
)
decode_data
=
handler
.
convert
(
destination_format
,
**
conversion_kw
)
return
encodestring
(
decode_data
)
return
encodestring
(
decode_data
)
def
updateFileMetadata
(
self
,
file
,
source_format
,
metadata_dict
):
def
updateFileMetadata
(
self
,
file
,
source_format
,
metadata_dict
):
...
...
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