Mercurial > libervia-backend
comparison sat/plugins/plugin_misc_upload.py @ 3182:f2bb57348587
plugin attach, XEP-0363: progress id can now be specified:
progress id can be specified in options, using the "progress_id" option, this can be
more handy for frontends to keep track of attachments progresses.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 23 Feb 2020 17:48:26 +0100 |
parents | 9d0df638c8b4 |
children | 9057713ab124 |
comparison
equal
deleted
inserted
replaced
3181:5ff2cf7f0aba | 3182:f2bb57348587 |
---|---|
109 @param upload_jid(jid.JID, None): upload capable entity jid, | 109 @param upload_jid(jid.JID, None): upload capable entity jid, |
110 or None to use autodetected, if possible | 110 or None to use autodetected, if possible |
111 @param options(dict): option to use for the upload, may be: | 111 @param options(dict): option to use for the upload, may be: |
112 - ignore_tls_errors(bool): True to ignore SSL/TLS certificate verification | 112 - ignore_tls_errors(bool): True to ignore SSL/TLS certificate verification |
113 used only if HTTPS transport is needed | 113 used only if HTTPS transport is needed |
114 - progress_id(str): id to use for progression | |
115 if not specified, one will be generated | |
114 @param profile: %(doc_profile)s | 116 @param profile: %(doc_profile)s |
115 @return (tuple[unicode,D(unicode)]): progress_id and a Deferred which fire | 117 @return (tuple[unicode,D(unicode)]): progress_id and a Deferred which fire |
116 download URL when upload is finished | 118 download URL when upload is finished |
117 """ | 119 """ |
118 if options is None: | 120 if options is None: |