comparison src/plugins/plugin_xep_0050.py @ 798:8f5479f8709a

core: XMLUI now use @property for session_id and submit
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 18:02:40 +0100
parents eac23b1aad90
children 9007bb133009
comparison
equal deleted inserted replaced
797:84214df2d837 798:8f5479f8709a
275 entity = jid.JID(data[xml_tools.SAT_FORM_PREFIX+'jid']) 275 entity = jid.JID(data[xml_tools.SAT_FORM_PREFIX+'jid'])
276 session_data['jid'] = entity 276 session_data['jid'] = entity
277 d = self.requestCommandsList(entity, profile) 277 d = self.requestCommandsList(entity, profile)
278 278
279 def sendItems(xmlui): 279 def sendItems(xmlui):
280 xmlui.setSessionId(session_id) # we need to keep track of the session 280 xmlui.session_id = session_id # we need to keep track of the session
281 return {'xmlui': xmlui.toXml()} 281 return {'xmlui': xmlui.toXml()}
282 282
283 d.addCallback(sendItems) 283 d.addCallback(sendItems)
284 else: 284 else:
285 # we have started a several forms sessions 285 # we have started a several forms sessions