Ejemplo n.º 1
0
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])
Ejemplo n.º 2
0
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