Exemplo n.º 1
0
 def process_signout(self, args, handler_ctx):
   try:
     self._handler.signout(handler_ctx, args.sessionId)
   except:
     ex = sys.exc_info()[1]
     self._event_handler.handlerError(handler_ctx, 'signout', ex)
     result = Thrift.TApplicationException(message=repr(ex))
Exemplo n.º 2
0
 def process_verifyClientVersion(self, args, handler_ctx):
   result = verifyClientVersion_result()
   try:
     result.success = self._handler.verifyClientVersion(handler_ctx, args.req)
   except:
     ex = sys.exc_info()[1]
     self._event_handler.handlerError(handler_ctx, 'verifyClientVersion', ex)
     result = Thrift.TApplicationException(message=repr(ex))
   return result
Exemplo n.º 3
0
 def process_executeJson(self, args, handler_ctx):
   result = executeJson_result()
   try:
     result.success = self._handler.executeJson(handler_ctx, args.sessionId, args.stmt)
   except:
     ex = sys.exc_info()[1]
     self._event_handler.handlerError(handler_ctx, 'executeJson', ex)
     result = Thrift.TApplicationException(message=repr(ex))
   return result
Exemplo n.º 4
0
 def process_authenticate(self, args, handler_ctx):
   result = authenticate_result()
   try:
     result.success = self._handler.authenticate(handler_ctx, args.username, args.password)
   except:
     ex = sys.exc_info()[1]
     self._event_handler.handlerError(handler_ctx, 'authenticate', ex)
     result = Thrift.TApplicationException(message=repr(ex))
   return result
 def process_remove(self, args, handler_ctx):
     result = remove_result()
     try:
         result.success = self._handler.remove(handler_ctx, args.req)
     except:
         ex = sys.exc_info()[1]
         self._event_handler.handlerError(handler_ctx, 'remove', ex)
         result = Thrift.TApplicationException(message=repr(ex))
     return result
 def process_put(self, args, handler_ctx):
   result = put_result()
   try:
     result.success = self._handler.put(handler_ctx, args.req)
   except:
     ex = sys.exc_info()[1]
     self._event_handler.handlerError(handler_ctx, 'put', ex)
     result = Thrift.TApplicationException(message=str(ex))
   return result
Exemplo n.º 7
0
 def process_forwardTransaction(self, args, handler_ctx):
   result = forwardTransaction_result()
   try:
     result.success = self._handler.forwardTransaction(handler_ctx, args.req)
   except:
     ex = sys.exc_info()[1]
     self._event_handler.handlerError(handler_ctx, 'forwardTransaction', ex)
     result = Thrift.TApplicationException(message=str(ex))
   return result