changeset 721:0077912bc9ba

jp: removed named argument for pipeOut, as it's not managed with dynamicaly added methods
author Goffi <goffi@goffi.org>
date Tue, 26 Nov 2013 18:30:35 +0100
parents 3954cb4d96a7
children 04aabc3f2684
files frontends/src/jp/jp src/plugins/plugin_xep_0096.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/jp/jp	Sat Nov 23 13:38:05 2013 +0100
+++ b/frontends/src/jp/jp	Tue Nov 26 18:30:35 2013 +0100
@@ -273,7 +273,7 @@
         tmp_dir = tempfile.mkdtemp()
         fifopath = os.path.join(tmp_dir,"pipe_out")
         os.mkfifo(fifopath)
-        self.bridge.pipeOut(self._getFullJid(self.dest_jid), fifopath, {}, profile_key=self.profile)
+        self.bridge.pipeOut(self._getFullJid(self.dest_jid), fifopath, {}, self.profile)
         with open(fifopath, 'w') as f:
             shutil.copyfileobj(sys.stdin, f)
         shutil.rmtree(tmp_dir)
--- a/src/plugins/plugin_xep_0096.py	Sat Nov 23 13:38:05 2013 +0100
+++ b/src/plugins/plugin_xep_0096.py	Tue Nov 26 18:30:35 2013 +0100
@@ -32,7 +32,7 @@
 PROFILE = "http://jabber.org/protocol/si/profile/" + PROFILE_NAME
 
 PLUGIN_INFO = {
-    "name": "XEP 0096 Plugin",
+    "name": "XEP-0096 Plugin",
     "import_name": "XEP-0096",
     "type": "XEP",
     "protocols": ["XEP-0096"],
@@ -301,4 +301,4 @@
 
     def sendFailureCb(self, sid, file_obj, stream_method, reason, profile):
         file_obj.close()
-        warning(_('Transfer %(id)s failed with stream method %(s_method)s: %(reason)s [%(profile)s') % {'id': sid, "s_method": stream_method, 'reason': reason, 'profile': profile})
+        warning(_('Transfer %(id)s failed with stream method %(s_method)s: %(reason)s [%(profile)s]') % {'id': sid, "s_method": stream_method, 'reason': reason, 'profile': profile})