diff options
author | tmolitor <thilo@eightysoft.de> | 2015-09-24 15:19:15 +0300 |
---|---|---|
committer | tmolitor <thilo@eightysoft.de> | 2015-09-24 15:19:15 +0300 |
commit | 881cdfa6f1bcc9cf11ea1b6eafd0229f5c62b15a (patch) | |
tree | 1c20427c0e4b1c97f0aa3f21a4d2080abeea4cb8 /httpupload | |
parent | a62c8ef532e20cc920063c6297a83273a13d60d1 (diff) |
Changed namespace to official namespace assigned by XEP-0363 (http://xmpp.org/extensions/xep-0363.html)
Diffstat (limited to 'httpupload')
-rw-r--r-- | httpupload/httpupload.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/httpupload/httpupload.py b/httpupload/httpupload.py index f70f0a1..fc7a1dd 100644 --- a/httpupload/httpupload.py +++ b/httpupload/httpupload.py @@ -28,7 +28,8 @@ from plugins.helpers import log_calls, log from dialogs import FileChooserDialog, ImageChooserDialog, ErrorDialog import nbxmpp -NS_HTTPUPLOAD = 'eu:siacs:conversations:http:upload' # XEP-0363 (http://xmpp.org/extensions/xep-0363.html) +#NS_HTTPUPLOAD = 'eu:siacs:conversations:http:upload' # old namespace before XEP publication +NS_HTTPUPLOAD = 'urn:xmpp:http:upload' # XEP-0363 (http://xmpp.org/extensions/xep-0363.html) jid_to_servers = {} iq_ids_to_callbacks = {} @@ -449,7 +450,7 @@ class ProgressWindow: pct = (float(seen) / total) * 100.0 self.progressbar.set_fraction(float(seen) / total) self.progressbar.set_text(str(int(pct)) + "%") - log.debug('upload progress: %.2f (%d of %d bytes)' % (pct, seen, total)) + log.debug('upload progress: %.2f% (%d of %d bytes)' % (pct, seen, total)) def close_dialog(self): self.on_cancel(None) |