Mercurial > libervia-backend
comparison libervia/backend/plugins/plugin_xep_0420.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 |
---|---|
28 from libervia.backend.core import exceptions | 28 from libervia.backend.core import exceptions |
29 | 29 |
30 from libervia.backend.core.constants import Const as C | 30 from libervia.backend.core.constants import Const as C |
31 from libervia.backend.core.i18n import D_ | 31 from libervia.backend.core.i18n import D_ |
32 from libervia.backend.core.log import Logger, getLogger | 32 from libervia.backend.core.log import Logger, getLogger |
33 from libervia.backend.core.sat_main import SAT | 33 from libervia.backend.core.sat_main import LiberviaBackend |
34 from libervia.backend.tools.xml_tools import ElementParser | 34 from libervia.backend.tools.xml_tools import ElementParser |
35 from libervia.backend.plugins.plugin_xep_0033 import NS_ADDRESS | 35 from libervia.backend.plugins.plugin_xep_0033 import NS_ADDRESS |
36 from libervia.backend.plugins.plugin_xep_0082 import XEP_0082 | 36 from libervia.backend.plugins.plugin_xep_0082 import XEP_0082 |
37 from libervia.backend.plugins.plugin_xep_0334 import NS_HINTS | 37 from libervia.backend.plugins.plugin_xep_0334 import NS_HINTS |
38 from libervia.backend.plugins.plugin_xep_0359 import NS_SID | 38 from libervia.backend.plugins.plugin_xep_0359 import NS_SID |
249 # :attr:`MUST_BE_PLAINTEXT_NAMESPACES` instead. | 249 # :attr:`MUST_BE_PLAINTEXT_NAMESPACES` instead. |
250 # Note: only full namespaces are forbidden by the spec for now, the following is for | 250 # Note: only full namespaces are forbidden by the spec for now, the following is for |
251 # potential future use. | 251 # potential future use. |
252 MUST_BE_PLAINTEXT_ELEMENTS: Set[Tuple[str, str]] = set() | 252 MUST_BE_PLAINTEXT_ELEMENTS: Set[Tuple[str, str]] = set() |
253 | 253 |
254 def __init__(self, sat: SAT) -> None: | 254 def __init__(self, sat: LiberviaBackend) -> None: |
255 """ | 255 """ |
256 @param sat: The SAT instance. | 256 @param sat: The SAT instance. |
257 """ | 257 """ |
258 | 258 |
259 @staticmethod | 259 @staticmethod |