@handler.authenticated()
  @handler.asynchronous(datastore=True)
  @admin.require_permission(level='root')
  def get(self):
    user_search = self.get_argument('user_id', '')
    query_string = ('user.name={us} | user.email={us}', {'us':user_search})
    req = self.ReadTablePageRequest(self.DB_TABLE)

    def _OnGetUsers(users):
      last_key = users[-1]._GetIndexKey() if len(users) > 0 else None
      rows = [self._FormatResult(user) for user in users]
      self.WriteTablePageResponse(rows, last_key)

    user.User.IndexQuery(self._client, query_string, ['name', 'user_id', 'email'],
                         callback=_OnGetUsers, limit=req.length, start_index_key=req.last_key)
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/admin/user_logs.py/UserNameDataHandler.get/original