comparison libervia/backend/plugins/plugin_xep_0373.py @ 4072:040095a5dc7f

refactoring: rename `SAT` class to `LiberviaBackend`
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 11:55:48 +0200
parents 4b842c1fb686
children 7c5654c54fed
comparison
equal deleted inserted replaced
4071:4b842c1fb686 4072:040095a5dc7f
33 from libervia.backend.core import exceptions 33 from libervia.backend.core import exceptions
34 from libervia.backend.core.constants import Const as C 34 from libervia.backend.core.constants import Const as C
35 from libervia.backend.core.core_types import SatXMPPEntity 35 from libervia.backend.core.core_types import SatXMPPEntity
36 from libervia.backend.core.i18n import _, D_ 36 from libervia.backend.core.i18n import _, D_
37 from libervia.backend.core.log import getLogger, Logger 37 from libervia.backend.core.log import getLogger, Logger
38 from libervia.backend.core.sat_main import SAT 38 from libervia.backend.core.sat_main import LiberviaBackend
39 from libervia.backend.core.xmpp import SatXMPPClient 39 from libervia.backend.core.xmpp import SatXMPPClient
40 from libervia.backend.memory import persistent 40 from libervia.backend.memory import persistent
41 from libervia.backend.plugins.plugin_xep_0045 import XEP_0045 41 from libervia.backend.plugins.plugin_xep_0045 import XEP_0045
42 from libervia.backend.plugins.plugin_xep_0060 import XEP_0060 42 from libervia.backend.plugins.plugin_xep_0060 import XEP_0060
43 from libervia.backend.plugins.plugin_xep_0163 import XEP_0163 43 from libervia.backend.plugins.plugin_xep_0163 import XEP_0163
974 </individual> 974 </individual>
975 </params> 975 </params>
976 """ 976 """
977 977
978 978
979 def get_gpg_provider(sat: SAT, client: SatXMPPClient) -> GPGProvider: 979 def get_gpg_provider(sat: LiberviaBackend, client: SatXMPPClient) -> GPGProvider:
980 """Get the GPG provider for a client. 980 """Get the GPG provider for a client.
981 981
982 @param sat: The SAT instance. 982 @param sat: The SAT instance.
983 @param client: The client. 983 @param client: The client.
984 @return: The GPG provider specifically for that client. 984 @return: The GPG provider specifically for that client.
1002 class XEP_0373: 1002 class XEP_0373:
1003 """ 1003 """
1004 Implementation of XEP-0373: OpenPGP for XMPP under namespace ``urn:xmpp:openpgp:0``. 1004 Implementation of XEP-0373: OpenPGP for XMPP under namespace ``urn:xmpp:openpgp:0``.
1005 """ 1005 """
1006 1006
1007 def __init__(self, host: SAT) -> None: 1007 def __init__(self, host: LiberviaBackend) -> None:
1008 """ 1008 """
1009 @param sat: The SAT instance. 1009 @param sat: The SAT instance.
1010 """ 1010 """
1011 1011
1012 self.host = host 1012 self.host = host