def step_positions_response(file_path, response): positions = registry.get_step_positions(file_path) response.messageType = Message.StepPositionsResponse response.stepPositionsResponse.stepPositions.extend( [_create_pos(x) for x in positions])
def process_step_positions_request(request): file_path = request.filePath positions = registry.get_step_positions(file_path) response = StepPositionsResponse() response.stepPositions.extend([_create_pos(x) for x in positions]) return response