diff libervia/server/session_iface.py @ 1506:ce879da7fcf7

server: fix `on_signal` callback
author Goffi <goffi@goffi.org>
date Thu, 23 Mar 2023 17:50:54 +0100
parents 409d10211b20
children 106bae41f5c8
line wrap: on
line diff
--- a/libervia/server/session_iface.py	Sat Mar 04 18:37:17 2023 +0100
+++ b/libervia/server/session_iface.py	Thu Mar 23 17:50:54 2023 +0100
@@ -37,16 +37,16 @@
 MAX_CACHE_AFFILIATIONS = 100  # number of nodes to keep in cache
 
 
-class ISATSession(Interface):
+class IWebSession(Interface):
     profile = Attribute("Sat profile")
     jid = Attribute("JID associated with the profile")
     uuid = Attribute("uuid associated with the profile session")
     identities = Attribute("Identities of XMPP entities")
 
 
-@implementer(ISATSession)
-class SATSession:
-    profiles_map: Dict[Optional[str], List["SATSession"]] = {}
+@implementer(IWebSession)
+class WebSession:
+    profiles_map: Dict[Optional[str], List["WebSession"]] = {}
 
     def __init__(self, session):
         self._profile = None
@@ -136,7 +136,7 @@
             )
 
     @classmethod
-    def get_profile_sessions(cls, profile: str) -> List["SATSession"]:
+    def get_profile_sessions(cls, profile: str) -> List["WebSession"]:
         return cls.profiles_map.get(profile, [])
 
     def getPageData(self, page, key):