comparison src/plugins/plugin_xep_0234.py @ 1598:b144babc2658

core, plugin file: fixed progress id + data is now returned by getProgress, instead of being an argument to fill
author Goffi <goffi@goffi.org>
date Sat, 14 Nov 2015 19:20:33 +0100
parents 846a39900fa6
children 0de5f210fe56
comparison
equal deleted inserted replaced
1597:91a605feed8c 1598:b144babc2658
98 return progress_id_d 98 return progress_id_d
99 99
100 # jingle callbacks 100 # jingle callbacks
101 101
102 def jingleSessionInit(self, session, content_name, filepath, name, file_desc, progress_id_d, profile=C.PROF_KEY_NONE): 102 def jingleSessionInit(self, session, content_name, filepath, name, file_desc, progress_id_d, profile=C.PROF_KEY_NONE):
103 progress_id_d.callback(self.getProgressId(session, content_name)) 103 progress_id_d.callback(self._getProgressId(session, content_name))
104 content_data = session['contents'][content_name] 104 content_data = session['contents'][content_name]
105 application_data = content_data['application_data'] 105 application_data = content_data['application_data']
106 assert 'file_path' not in application_data 106 assert 'file_path' not in application_data
107 application_data['file_path'] = filepath 107 application_data['file_path'] = filepath
108 file_data = application_data['file_data'] = {} 108 file_data = application_data['file_data'] = {}