comparison sat/plugins/plugin_misc_email_invitation.py @ 3120:0c29155ac68b

core: backend autoconnection: A new Connection/autoconnect_backend param can be set for a profile or component to be started automatically with backend. This is specially useful for components, but can be useful for client profile too (e.g. on Android we need to start profile with backend to get notifications, this part will come with following commits). The new Sqlite.getIndParamValues method allows to retrieve the same parameters for all profiles.
author Goffi <goffi@goffi.org>
date Sat, 25 Jan 2020 21:08:32 +0100
parents fee60f17ebac
children 9d0df638c8b4
comparison
equal deleted inserted replaced
3119:790489521b15 3120:0c29155ac68b
279 try: 279 try:
280 id_plugin = self.host.plugins['IDENTITY'] 280 id_plugin = self.host.plugins['IDENTITY']
281 except KeyError: 281 except KeyError:
282 pass 282 pass
283 else: 283 else:
284 yield self.host.connect(guest_profile, password) 284 yield defer.ensureDeferred(self.host.connect(guest_profile, password))
285 guest_client = self.host.getClient(guest_profile) 285 guest_client = self.host.getClient(guest_profile)
286 yield id_plugin.setIdentity(guest_client, {'nick': name}) 286 yield id_plugin.setIdentity(guest_client, {'nick': name})
287 yield self.host.disconnect(guest_profile) 287 yield self.host.disconnect(guest_profile)
288 288
289 ## email 289 ## email