暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

client.py 408B

123456789101112
  1. from lodel.context import LodelContext
  2. LodelContext.expose_modules(globals(), {'lodel.auth.client': ['Client']})
  3. class WebUiClient(Client):
  4. def __init__(self, ip, user_agent, session_token = None):
  5. self.__ip = ip
  6. self.__user_agent = user_agent
  7. super().__init__(session_token = session_token)
  8. def __str__(self):
  9. return "%s (%s)" % (self.__ip, self.__user_agent)