comparison sat/core/xmpp.py @ 3537:f9a5b810f14d

core (memory/storage): backend storage is now based on SQLAlchemy
author Goffi <goffi@goffi.org>
date Thu, 03 Jun 2021 15:20:47 +0200
parents 4b33ed5abd8f
children 888109774673
comparison
equal deleted inserted replaced
3536:0985c47ffd96 3537:f9a5b810f14d
40 from wokkel import client as wokkel_client, disco, xmppim, generic, iwokkel 40 from wokkel import client as wokkel_client, disco, xmppim, generic, iwokkel
41 from wokkel import component 41 from wokkel import component
42 from wokkel import delay 42 from wokkel import delay
43 from sat.core.log import getLogger 43 from sat.core.log import getLogger
44 from sat.core import exceptions 44 from sat.core import exceptions
45 from sat.core import core_types
45 from sat.memory import encryption 46 from sat.memory import encryption
46 from sat.memory import persistent 47 from sat.memory import persistent
47 from sat.tools import xml_tools 48 from sat.tools import xml_tools
48 from sat.tools import utils 49 from sat.tools import utils
49 from sat.tools.common import data_format 50 from sat.tools.common import data_format
81 else: 82 else:
82 return lambda *args, **kwargs: missing 83 return lambda *args, **kwargs: missing
83 return partial(getattr(self.plugin, attr), self.client) 84 return partial(getattr(self.plugin, attr), self.client)
84 85
85 86
86 class SatXMPPEntity: 87 class SatXMPPEntity(core_types.SatXMPPEntity):
87 """Common code for Client and Component""" 88 """Common code for Client and Component"""
88 # profile is added there when startConnection begins and removed when it is finished 89 # profile is added there when startConnection begins and removed when it is finished
89 profiles_connecting = set() 90 profiles_connecting = set()
90 91
91 def __init__(self, host_app, profile, max_retries): 92 def __init__(self, host_app, profile, max_retries):