Commit 6a4d19a8 authored by Nicolas Delaby's avatar Nicolas Delaby

Convert before, calling getMetadata


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44743 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 62cb04c3
......@@ -335,8 +335,11 @@ def main():
metadata_dict = unoconverter.getMetadata()
output = encodestring(json.dumps(metadata_dict))
elif '--getmetadata' in param_list and '--convert' in param_list:
document_url = unoconverter.convert()
# Instanciate new UnoConverter instance with new url
unoconverter = UnoConverter(hostname, port, document_url, **kw)
metadata_dict = unoconverter.getMetadata()
metadata_dict['document_url'] = unoconverter.convert()
metadata_dict['document_url'] = document_url
output = encodestring(json.dumps(metadata_dict))
elif '--setmetadata' in param_list:
unoconverter.setMetadata(metadata)
......
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