Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0363.py @ 2765:378188abe941
misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 Jan 2019 11:13:15 +0100 |
parents | 56f94936df1e |
children | 003b8b4b56a7 |
comparison
equal
deleted
inserted
replaced
2764:92af49cde255 | 2765:378188abe941 |
---|---|
146 upload_jid="", | 146 upload_jid="", |
147 ignore_tls_errors=False, | 147 ignore_tls_errors=False, |
148 profile=C.PROF_KEY_NONE, | 148 profile=C.PROF_KEY_NONE, |
149 ): | 149 ): |
150 assert os.path.isabs(filepath) and os.path.isfile(filepath) | 150 assert os.path.isabs(filepath) and os.path.isfile(filepath) |
151 progress_id_d, dummy = self.fileHTTPUpload( | 151 progress_id_d, __ = self.fileHTTPUpload( |
152 filepath, | 152 filepath, |
153 filename or None, | 153 filename or None, |
154 jid.JID(upload_jid) if upload_jid else None, | 154 jid.JID(upload_jid) if upload_jid else None, |
155 {"ignore_tls_errors": ignore_tls_errors}, | 155 {"ignore_tls_errors": ignore_tls_errors}, |
156 profile, | 156 profile, |
237 None, | 237 None, |
238 (sat_file, download_d), | 238 (sat_file, download_d), |
239 ) | 239 ) |
240 return d | 240 return d |
241 | 241 |
242 def _uploadCb(self, dummy, sat_file, slot, download_d): | 242 def _uploadCb(self, __, sat_file, slot, download_d): |
243 """Called once file is successfully uploaded | 243 """Called once file is successfully uploaded |
244 | 244 |
245 @param sat_file(SatFile): file used for the upload | 245 @param sat_file(SatFile): file used for the upload |
246 should be closed, be is needed to send the progressFinished signal | 246 should be closed, be is needed to send the progressFinished signal |
247 @param slot(Slot): put/get urls | 247 @param slot(Slot): put/get urls |