comparison libervia/backend/core/xmpp.py @ 4107:bc7d45dedeb0

backend: rename `SatRosterProtocol` to `LiberviaRosterProtocol`
author Goffi <goffi@goffi.org>
date Fri, 30 Jun 2023 15:11:05 +0200
parents 4b842c1fb686
children 18026ce0819c
comparison
equal deleted inserted replaced
4106:4ad982a0358f 4107:bc7d45dedeb0
968 968
969 def _create_sub_protocols(self): 969 def _create_sub_protocols(self):
970 self.messageProt = SatMessageProtocol(self.host_app) 970 self.messageProt = SatMessageProtocol(self.host_app)
971 self.messageProt.setHandlerParent(self) 971 self.messageProt.setHandlerParent(self)
972 972
973 self.roster = SatRosterProtocol(self.host_app) 973 self.roster = LiberviaRosterProtocol(self.host_app)
974 self.roster.setHandlerParent(self) 974 self.roster.setHandlerParent(self)
975 975
976 self.presence = SatPresenceProtocol(self.host_app) 976 self.presence = SatPresenceProtocol(self.host_app)
977 self.presence.setHandlerParent(self) 977 self.presence.setHandlerParent(self)
978 978
1420 def cancel_error_trap(self, failure_): 1420 def cancel_error_trap(self, failure_):
1421 """A message sending can be cancelled by a plugin treatment""" 1421 """A message sending can be cancelled by a plugin treatment"""
1422 failure_.trap(exceptions.CancelError) 1422 failure_.trap(exceptions.CancelError)
1423 1423
1424 1424
1425 class SatRosterProtocol(xmppim.RosterClientProtocol): 1425 class LiberviaRosterProtocol(xmppim.RosterClientProtocol):
1426 1426
1427 def __init__(self, host): 1427 def __init__(self, host):
1428 xmppim.RosterClientProtocol.__init__(self) 1428 xmppim.RosterClientProtocol.__init__(self)
1429 self.host = host 1429 self.host = host
1430 self.got_roster = defer.Deferred() # called when roster is received and ready 1430 self.got_roster = defer.Deferred() # called when roster is received and ready