comparison libervia/backend/plugins/plugin_xep_0082.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
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from libervia.backend.core.constants import Const as C 20 from libervia.backend.core.constants import Const as C
21 from libervia.backend.core.i18n import D_ 21 from libervia.backend.core.i18n import D_
22 from libervia.backend.core.sat_main import SAT 22 from libervia.backend.core.sat_main import LiberviaBackend
23 from libervia.backend.tools import xmpp_datetime 23 from libervia.backend.tools import xmpp_datetime
24 24
25 25
26 __all__ = [ # pylint: disable=unused-variable 26 __all__ = [ # pylint: disable=unused-variable
27 "PLUGIN_INFO", 27 "PLUGIN_INFO",
50 50
51 This is a passive plugin, i.e. it doesn't hook into any triggers to process stanzas 51 This is a passive plugin, i.e. it doesn't hook into any triggers to process stanzas
52 actively, but offers API for other plugins to use. 52 actively, but offers API for other plugins to use.
53 """ 53 """
54 54
55 def __init__(self, sat: SAT) -> None: 55 def __init__(self, sat: LiberviaBackend) -> None:
56 """ 56 """
57 @param sat: The SAT instance. 57 @param sat: The SAT instance.
58 """ 58 """
59 59
60 format_date = staticmethod(xmpp_datetime.format_date) 60 format_date = staticmethod(xmpp_datetime.format_date)