comparison src/core/sat_main.py @ 1585:846a39900fa6

plugins XEP-0096, XEP-0260, file: sendFile method is managed by file plugin, which choose the best available method + progress_id fix
author Goffi <goffi@goffi.org>
date Sat, 14 Nov 2015 19:18:05 +0100
parents 6338677f3a89
children 42285d993e68
comparison
equal deleted inserted replaced
1584:b57b4683dc33 1585:846a39900fa6
837 """Remove a progress callback""" 837 """Remove a progress callback"""
838 client = self.getClient(profile) 838 client = self.getClient(profile)
839 try: 839 try:
840 del client._progress_cb[progress_id] 840 del client._progress_cb[progress_id]
841 except KeyError: 841 except KeyError:
842 log.error(_("Trying to remove an unknow progress callback")) 842 log.error(_(u"Trying to remove an unknow progress callback"))
843 843
844 def _progressGet(self, progress_id, profile): 844 def _progressGet(self, progress_id, profile):
845 data = self.progressGet(progress_id, profile) 845 data = self.progressGet(progress_id, profile)
846 return {k: unicode(v) for k,v in data} 846 return {k: unicode(v) for k,v in data}
847 847