Example #1
0
def get_user(username):
    if username in SESSION_CACHE:
        return SESSION_CACHE[username]
    return ChatUser.get_user(username)
Example #2
0
def get_user(username):
    if username in SESSION_CACHE:
        return SESSION_CACHE[username]
    return ChatUser.get_user(username)
Example #3
0
 def get_user(self, username):
     if username in self:
         return self[username]
     return ChatUser.get_user(username)
Example #4
0
 def get_user(self,username):
     if username in self:
         return self[username]
     return ChatUser.get_user(username)