def get_user(username): if username in SESSION_CACHE: return SESSION_CACHE[username] return ChatUser.get_user(username)
def get_user(self, username): if username in self: return self[username] return ChatUser.get_user(username)
def get_user(self,username): if username in self: return self[username] return ChatUser.get_user(username)