Mercurial > libervia-backend
comparison libervia/backend/plugins/plugin_xep_0374.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 |
---|---|
24 from libervia.backend.core import exceptions | 24 from libervia.backend.core import exceptions |
25 from libervia.backend.core.constants import Const as C | 25 from libervia.backend.core.constants import Const as C |
26 from libervia.backend.core.core_types import SatXMPPEntity | 26 from libervia.backend.core.core_types import SatXMPPEntity |
27 from libervia.backend.core.i18n import _, D_ | 27 from libervia.backend.core.i18n import _, D_ |
28 from libervia.backend.core.log import getLogger, Logger | 28 from libervia.backend.core.log import getLogger, Logger |
29 from libervia.backend.core.sat_main import SAT | 29 from libervia.backend.core.sat_main import LiberviaBackend |
30 from libervia.backend.core.xmpp import SatXMPPClient | 30 from libervia.backend.core.xmpp import SatXMPPClient |
31 from libervia.backend.plugins.plugin_xep_0045 import XEP_0045 | 31 from libervia.backend.plugins.plugin_xep_0045 import XEP_0045 |
32 from libervia.backend.plugins.plugin_xep_0334 import XEP_0334 | 32 from libervia.backend.plugins.plugin_xep_0334 import XEP_0334 |
33 from libervia.backend.plugins.plugin_xep_0373 import NS_OX, XEP_0373, TrustLevel | 33 from libervia.backend.plugins.plugin_xep_0373 import NS_OX, XEP_0373, TrustLevel |
34 from libervia.backend.tools import xml_tools | 34 from libervia.backend.tools import xml_tools |
69 Plugin equipping Libervia with OXIM capabilities under the ``urn:xmpp:openpgp:im:0`` | 69 Plugin equipping Libervia with OXIM capabilities under the ``urn:xmpp:openpgp:im:0`` |
70 namespace. MUC messages are supported next to one to one messages. For trust | 70 namespace. MUC messages are supported next to one to one messages. For trust |
71 management, the two trust models "BTBV" and "manual" are supported. | 71 management, the two trust models "BTBV" and "manual" are supported. |
72 """ | 72 """ |
73 | 73 |
74 def __init__(self, sat: SAT) -> None: | 74 def __init__(self, sat: LiberviaBackend) -> None: |
75 """ | 75 """ |
76 @param sat: The SAT instance. | 76 @param sat: The SAT instance. |
77 """ | 77 """ |
78 | 78 |
79 self.__sat = sat | 79 self.__sat = sat |