grpc: added set session user call, updated mobility to look for files within new gui as well, fixed pygui issue when start session has a grpc exceptions, showing and empty error window
This commit is contained in:
parent
36123e7aa5
commit
6d4434bc12
7 changed files with 66 additions and 23 deletions
|
@ -448,6 +448,21 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
|||
|
||||
return core_pb2.SetSessionStateResponse(result=result)
|
||||
|
||||
def SetSessionUser(
|
||||
self, request: core_pb2.SetSessionUserRequest, context: ServicerContext
|
||||
) -> core_pb2.SetSessionUserResponse:
|
||||
"""
|
||||
Sets the user for a session.
|
||||
|
||||
:param request: set session user request
|
||||
:param context: context object
|
||||
:return: set session user response
|
||||
"""
|
||||
logging.debug("set session user: %s", request)
|
||||
session = self.get_session(request.session_id, context)
|
||||
session.user = request.user
|
||||
return core_pb2.SetSessionUserResponse(result=True)
|
||||
|
||||
def GetSessionOptions(
|
||||
self, request: core_pb2.GetSessionOptionsRequest, context: ServicerContext
|
||||
) -> core_pb2.GetSessionOptionsResponse:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue