jp: removed named argument for pipeOut, as it's not managed with dynamicaly added methods

This commit is contained in:
Goffi 2013-11-26 18:30:35 +01:00
commit 9fdc271294
2 changed files with 3 additions and 3 deletions

View file

@ -273,7 +273,7 @@ class JP(object):
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)

View file

@ -32,7 +32,7 @@ PROFILE_NAME = "file-transfer"
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 @@ class XEP_0096(object):
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})