diff frontends/src/jp/cmd_file.py @ 1824:a19161bb3ff7

plugin upload, XEP-0363: splitted fileUpload in fileUpload + upload: fileUpload is used by external frontends, while upload can be used by frontends. upload return in addition to the progress_id a download_d Deferred which fire with URI when file is uploaded. changed option ignore-tls-errors to ignore_tls_errors.
author Goffi <goffi@goffi.org>
date Fri, 22 Jan 2016 20:24:17 +0100
parents d17772b0fe22
children 96ba685162f6
line wrap: on
line diff
--- a/frontends/src/jp/cmd_file.py	Fri Jan 22 20:24:17 2016 +0100
+++ b/frontends/src/jp/cmd_file.py	Fri Jan 22 20:24:17 2016 +0100
@@ -276,7 +276,7 @@
         self.full_dest_jid = self.host.get_full_jid(self.args.jid) if self.args.jid is not None else ''
         options = {}
         if self.args.ignore_tls_errors:
-            options['ignore-tls-errors'] = C.BOOL_TRUE
+            options['ignore_tls_errors'] = C.BOOL_TRUE
 
         path = os.path.abspath(file_)
         self.host.bridge.fileUpload(path, '', self.full_dest_jid, options, self.profile, callback=lambda pid, file_=file_: self.gotId(pid, file_), errback=self.error)